diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2019-10-23 04:13:40 -0400 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-10-23 11:13:40 +0300 |
commit | d16ae64e5aeeda305a3f6d761eaf6a87dfd726bd (patch) | |
tree | d53c324c63f394f9bef08c3596ad08312401594c | |
parent | bc200ed8eeb179754d483351dc526143b1f9043b (diff) | |
download | google-benchmark-d16ae64e5aeeda305a3f6d761eaf6a87dfd726bd.tar.gz |
Set CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS (#889)
When building on Windows with `BUILD_SHARED_LIBS=ON`, the symbols were
not being properly exported in the DLL. Fix this by setting
`CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS`.
Fixes #888
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9db1361..8cfe125 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,7 @@ option(BENCHMARK_DOWNLOAD_DEPENDENCIES "Allow the downloading and in-tree buildi # in cases where it is not possible to build or find a valid version of gtest. option(BENCHMARK_ENABLE_GTEST_TESTS "Enable building the unit tests which depend on gtest" ON) +set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) set(ENABLE_ASSEMBLY_TESTS_DEFAULT OFF) function(should_enable_assembly_tests) if(CMAKE_BUILD_TYPE) |