mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Export symbols for all compilers on Windows
This commit is contained in:
parent
2d3c9713a3
commit
baab9e8d28
@ -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
|
# 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.
|
# the configuration step so that we don't have to also provide an override.
|
||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
if (MSVC)
|
set_target_properties(Catch2 Catch2WithMain
|
||||||
set_target_properties(Catch2 Catch2WithMain
|
PROPERTIES
|
||||||
PROPERTIES
|
WINDOWS_EXPORT_ALL_SYMBOLS ON
|
||||||
WINDOWS_EXPORT_ALL_SYMBOLS ON
|
)
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
get_target_property(_VisPreset Catch2 CXX_VISIBILITY_PRESET)
|
get_target_property(_VisPreset Catch2 CXX_VISIBILITY_PRESET)
|
||||||
if (NOT MSVC AND _VisPreset STREQUAL "hidden")
|
if (NOT MSVC AND _VisPreset STREQUAL "hidden")
|
||||||
|
Loading…
Reference in New Issue
Block a user