mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-18 11:39:33 +01:00
Fix building as shared library with MSVC.
This commit is contained in:
committed by
Martin Hořeňovský
parent
0de60d8e7e
commit
c0e582e659
@@ -409,6 +409,10 @@ if (CATCH_BUILD_EXAMPLES OR CATCH_BUILD_EXTRA_TESTS)
|
||||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/generated-includes>
|
||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
)
|
||||
target_compile_definitions(Catch2_buildall_interface
|
||||
INTERFACE
|
||||
CATCH_CONFIG_STATIC
|
||||
)
|
||||
target_compile_features(Catch2_buildall_interface
|
||||
INTERFACE
|
||||
cxx_alignas
|
||||
|
||||
Reference in New Issue
Block a user