Link error when use as static library on windows. (#1470)

This commit is contained in:
Pavel V. Sysolyatin 2022-08-18 17:19:51 +07:00 committed by GitHub
parent 77d1e74d29
commit e8baf26225
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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