mirror of
https://github.com/google/benchmark.git
synced 2025-01-14 05:40:14 +08:00
Link error when use as static library on windows. (#1470)
This commit is contained in:
parent
77d1e74d29
commit
e8baf26225
@ -55,7 +55,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
||||
endif()
|
||||
|
||||
if (NOT BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(benchmark PRIVATE -DBENCHMARK_STATIC_DEFINE)
|
||||
target_compile_definitions(benchmark PUBLIC -DBENCHMARK_STATIC_DEFINE)
|
||||
endif()
|
||||
|
||||
# Benchmark main library
|
||||
|
Loading…
Reference in New Issue
Block a user