From: Konstantinos Margaritis Date: Fri, 8 Oct 2021 21:25:29 +0000 (+0300) Subject: atm, do not built benchmark tool for fat runtime, as the function names are modified... X-Git-Tag: v5.4.3+vectorscan~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a78f3789a9cd6dc390c6293d495df54384be489d;p=thirdparty%2Fvectorscan.git atm, do not built benchmark tool for fat runtime, as the function names are modified, need to rethink this --- diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt index 921b013e..2400c2e9 100644 --- a/benchmarks/CMakeLists.txt +++ b/benchmarks/CMakeLists.txt @@ -1,4 +1,10 @@ -add_executable(benchmarks benchmarks.cpp) -set_source_files_properties(benchmarks.cpp PROPERTIES COMPILE_FLAGS - "-Wall -Wno-unused-variable") -target_link_libraries(benchmarks hs) +if (NOT FAT_RUNTIME) + 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() +endif()