Skip to content

Commit b4dbce0

Browse files
committed
fix(test): fix conan link issue on windows
1 parent bf5dab5 commit b4dbce0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/myproj/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ run_conan()
2828

2929
project(myproj VERSION 0.2.0 LANGUAGES CXX C)
3030

31+
include(cmake/rpath.cmake) # Set rpath for installed programs, used in runtime installation test
32+
3133
set(PCH_HEADERS
3234
<Eigen/Dense>
3335
<fmt/core.h>
@@ -96,12 +98,12 @@ target_link_libraries(main PRIVATE myproj_project_options myproj_project_warning
9698

9799
target_find_dependencies(main
98100
PUBLIC
101+
PACKAGE docopt CONFIG
99102
PACKAGE fmt CONFIG
100103
PACKAGE Eigen3 CONFIG
101-
PACKAGE docopt CONFIG
102104
)
103105

104-
target_link_system_libraries(main PRIVATE fmt::fmt Eigen3::Eigen docopt)
106+
target_link_system_libraries(main PRIVATE docopt fmt::fmt Eigen3::Eigen)
105107

106108
add_subdirectory(libs)
107109

0 commit comments

Comments
 (0)