]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
link benchmarks against static lib only as some symbols are not exposed in the shared lib v5.4.4+vectorscan
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 12 Oct 2021 10:33:40 +0000 (10:33 +0000)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 12 Oct 2021 10:33:40 +0000 (10:33 +0000)
benchmarks/CMakeLists.txt

index 2400c2e91c7b545d433f65b63da59dd5b692b80e..90c685c4fa44aecd6c160136770e9898d489b48b 100644 (file)
@@ -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()