link benchmarks against static lib only as some symbols are not exposed in the shared lib

This commit is contained in:
Konstantinos Margaritis 2021-10-12 10:33:40 +00:00
parent 4e044d4142
commit 35a25fffd7

View 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()
endif()