💚 Bless the windows build!

This commit is contained in:
ThePhD 2021-05-07 13:44:45 -04:00
parent d20cca5261
commit c6a04afa12
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
3 changed files with 34 additions and 10 deletions

View File

@ -28,12 +28,25 @@ file(GLOB sources
source/*.cpp)
sol2_create_basic_test(sol2.tests.exceptions sol2::sol2 ${sources})
target_compile_definitions(sol2.tests.exceptions PRIVATE
SOL_ALL_SAFETIES_ON=1)
target_compile_options(sol2.tests.exceptions PRIVATE
${--allow-unreachable-code})
sol2_create_basic_test(sol2.tests.exceptions.SOL_ALL_SAFETIES_ON sol2::sol2 ${sources})
target_compile_definitions(sol2.tests.exceptions.SOL_ALL_SAFETIES_ON PRIVATE
SOL_ALL_SAFETIES_ON=1)
target_compile_options(sol2.tests.exceptions.SOL_ALL_SAFETIES_ON PRIVATE
target_compile_options(sol2.tests.exceptions
PRIVATE
${--allow-unreachable-code})
target_compile_options(sol2.tests.exceptions.SOL_ALL_SAFETIES_ON
PRIVATE
${--allow-unreachable-code})
target_compile_definitions(sol2.tests.exceptions.SOL_ALL_SAFETIES_ON
PRIVATE
SOL_ALL_SAFETIES_ON=1)
if (WAY_TOO_BUSTED_RIGHT_NOW)
sol2_create_basic_test(sol2.tests.exceptions.SOL_EXCEPTIONS_ALWAYS_UNSAFE sol2::sol2 ${sources})
target_compile_options(sol2.tests.exceptions.SOL_EXCEPTIONS_ALWAYS_UNSAFE
PRIVATE
${--allow-unreachable-code})
target_compile_definitions(sol2.tests.exceptions.SOL_EXCEPTIONS_ALWAYS_UNSAFE
PRIVATE
SOL_EXCEPTIONS_ALWAYS_UNSAFE=0)
endif()

View File

@ -29,5 +29,6 @@ file(GLOB sources
sol2_create_basic_test(sol2.tests.numerics sol2::sol2 ${sources})
sol2_create_basic_test(sol2.tests.numerics.SOL_ALL_SAFETIES_ON sol2::sol2 ${sources})
target_compile_definitions(sol2.tests.numerics.SOL_ALL_SAFETIES_ON PRIVATE
target_compile_definitions(sol2.tests.numerics.SOL_ALL_SAFETIES_ON
PRIVATE
SOL_ALL_SAFETIES_ON=1)

View File

@ -27,7 +27,17 @@ file(GLOB_RECURSE sources
CONFIGURE_DEPENDS
source/*.cpp)
sol2_create_basic_test(sol2.tests.regression sol2::sol2 ${sources})
sol2_create_basic_test(sol2.tests.regression.simple sol2::sol2 ${sources})
sol2_create_basic_test(sol2.tests.regression.simple.SOL_ALL_SAFETIES_ON sol2::sol2 ${sources})
target_compile_options(sol2.tests.regression.simple
PRIVATE ${--allow-unreachable-code})
target_compile_options(sol2.tests.regression.simple.SOL_ALL_SAFETIES_ON
PRIVATE ${--allow-unreachable-code})
if (SOL2_TESTS_SINGLE)
sol2_create_basic_test(sol2.single.tests.regression sol2::sol2::single ${sources})
sol2_create_basic_test(sol2.single.tests.regression.simple sol2::sol2::single ${sources})
sol2_create_basic_test(sol2.single.tests.regression.simple.SOL_ALL_SAFETIES_ON sol2::sol2::single ${sources})
target_compile_options(sol2.single.tests.regression.simple
PRIVATE ${--allow-unreachable-code})
target_compile_definitions(sol2.single.tests.regression.simple.SOL_ALL_SAFETIES_ON
PRIVATE SOL_ALL_SAFETIES_ON=1)
endif()