From e835dd01d3c89afb6cd33eacf5393aeaa6633052 Mon Sep 17 00:00:00 2001 From: Carsten Griwodz Date: Wed, 31 Jul 2024 08:03:03 +0200 Subject: [PATCH] desperate attempt to link to libpopsift in the right location on Windows --- src/application/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/application/CMakeLists.txt b/src/application/CMakeLists.txt index 2379c57d..14548e1d 100755 --- a/src/application/CMakeLists.txt +++ b/src/application/CMakeLists.txt @@ -71,7 +71,11 @@ set_property(TARGET popsift-demo PROPERTY CXX_STANDARD 11) target_compile_options(popsift-demo PRIVATE ${PD_COMPILE_OPTIONS} ) target_include_directories(popsift-demo PUBLIC PopSift::popsift ${PD_INCLUDE_DIRS}) target_compile_definitions(popsift-demo PRIVATE ${Boost_DEFINITIONS}) +if(TARGET popsift) +target_link_libraries(popsift-demo PUBLIC popsift ${PD_LINK_LIBS}) +else() target_link_libraries(popsift-demo PUBLIC PopSift::popsift ${PD_LINK_LIBS}) +endif() ############################################################# @@ -85,7 +89,11 @@ set_property(TARGET popsift-match PROPERTY CXX_STANDARD 11) target_compile_options(popsift-match PRIVATE ${PD_COMPILE_OPTIONS} ) target_include_directories(popsift-match PUBLIC PopSift::popsift ${PD_INCLUDE_DIRS}) target_compile_definitions(popsift-match PRIVATE ${Boost_DEFINITIONS}) +if(TARGET popsift) +target_link_libraries(popsift-match PUBLIC popsift ${PD_LINK_LIBS}) +else() target_link_libraries(popsift-match PUBLIC PopSift::popsift ${PD_LINK_LIBS}) +endif() ############################################################# # installation