mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
link benchmarks against static lib only as some symbols are not exposed in the shared lib
This commit is contained in:
parent
4e044d4142
commit
35a25fffd7
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user