diff options
| author | Martin Hořeňovský | 2023-01-21 15:14:24 +0100 |
|---|---|---|
| committer | GitHub | 2023-01-21 15:14:24 +0100 |
| commit | dd36f83b88f3a3d7796469bb2d91f9af71bfa675 (patch) | |
| tree | 691790ad4e7e8db85c5f68533f2a5373508be8e8 /src | |
| parent | 2d3c9713a37210ea75fda967c7f397a1d8f895d7 (diff) | |
| parent | baab9e8d28983273a4218c90319b5af32d11caca (diff) | |
| download | catch3-dd36f83b88f3a3d7796469bb2d91f9af71bfa675.tar.gz | |
Merge pull request #2630 from ChrisThrasher/export_all_symbols
Export symbols for all compilers on Windows
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cd83a0b4..2791fa30 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -487,12 +487,10 @@ set(CATCH_WARNING_TARGETS ${CATCH_WARNING_TARGETS} PARENT_SCOPE) # so we want to check & warn users if they do this. However, we won't abort # the configuration step so that we don't have to also provide an override. if (BUILD_SHARED_LIBS) - if (MSVC) - set_target_properties(Catch2 Catch2WithMain - PROPERTIES - WINDOWS_EXPORT_ALL_SYMBOLS ON - ) - endif() + set_target_properties(Catch2 Catch2WithMain + PROPERTIES + WINDOWS_EXPORT_ALL_SYMBOLS ON + ) get_target_property(_VisPreset Catch2 CXX_VISIBILITY_PRESET) if (NOT MSVC AND _VisPreset STREQUAL "hidden") |