From: Konstantinos Margaritis Date: Tue, 12 Oct 2021 10:33:40 +0000 (+0000) Subject: link benchmarks against static lib only as some symbols are not exposed in the shared lib X-Git-Tag: v5.4.4+vectorscan X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35a25fffd7d584aa8e3447e4ea5affba28389744;p=thirdparty%2Fvectorscan.git link benchmarks against static lib only as some symbols are not exposed in the shared lib --- diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt index 2400c2e9..90c685c4 100644 --- a/benchmarks/CMakeLists.txt +++ b/benchmarks/CMakeLists.txt @@ -1,10 +1,6 @@ -if (NOT FAT_RUNTIME) +if (NOT FAT_RUNTIME AND (BUILD_STATIC_AND_SHARED OR BUILD_STATIC_LIBS)) add_executable(benchmarks benchmarks.cpp) set_source_files_properties(benchmarks.cpp PROPERTIES COMPILE_FLAGS "-Wall -Wno-unused-variable") - if (BUILD_STATIC_AND_SHARED OR BUILD_SHARED_LIBS) - target_link_libraries(benchmarks hs_shared) - else() - target_link_libraries(benchmarks hs) - endif() + target_link_libraries(benchmarks hs) endif()