From b4dbce073c155743e421b72d19a0cd245ed77cff Mon Sep 17 00:00:00 2001 From: FeignClaims Date: Thu, 12 Sep 2024 18:19:28 +0800 Subject: [PATCH] fix(test): fix conan link issue on windows --- tests/myproj/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/myproj/CMakeLists.txt b/tests/myproj/CMakeLists.txt index ee28e291..969e631d 100644 --- a/tests/myproj/CMakeLists.txt +++ b/tests/myproj/CMakeLists.txt @@ -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 @@ -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)