Skip to content

Commit

Permalink
fix(test): fix conan link issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Sep 12, 2024
1 parent bf5dab5 commit b4dbce0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/myproj/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ run_conan()

project(myproj VERSION 0.2.0 LANGUAGES CXX C)

include(cmake/rpath.cmake) # Set rpath for installed programs, used in runtime installation test

set(PCH_HEADERS
<Eigen/Dense>
<fmt/core.h>
Expand Down Expand Up @@ -96,12 +98,12 @@ target_link_libraries(main PRIVATE myproj_project_options myproj_project_warning

target_find_dependencies(main
PUBLIC
PACKAGE docopt CONFIG
PACKAGE fmt CONFIG
PACKAGE Eigen3 CONFIG
PACKAGE docopt CONFIG
)

target_link_system_libraries(main PRIVATE fmt::fmt Eigen3::Eigen docopt)
target_link_system_libraries(main PRIVATE docopt fmt::fmt Eigen3::Eigen)

add_subdirectory(libs)

Expand Down

0 comments on commit b4dbce0

Please sign in to comment.