Fix building as shared library with MSVC.

This commit is contained in:
Dimitrij Mijoski
2022-09-17 14:58:52 +02:00
committed by Martin Hořeňovský
parent 0de60d8e7e
commit c0e582e659
6 changed files with 22 additions and 3 deletions

View File

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