mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
💚 Bless the windows build!
This commit is contained in:
parent
d20cca5261
commit
c6a04afa12
|
@ -28,12 +28,25 @@ file(GLOB sources
|
||||||
source/*.cpp)
|
source/*.cpp)
|
||||||
|
|
||||||
sol2_create_basic_test(sol2.tests.exceptions sol2::sol2 ${sources})
|
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})
|
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
|
target_compile_options(sol2.tests.exceptions
|
||||||
SOL_ALL_SAFETIES_ON=1)
|
PRIVATE
|
||||||
target_compile_options(sol2.tests.exceptions.SOL_ALL_SAFETIES_ON PRIVATE
|
|
||||||
${--allow-unreachable-code})
|
${--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()
|
||||||
|
|
|
@ -29,5 +29,6 @@ file(GLOB sources
|
||||||
|
|
||||||
sol2_create_basic_test(sol2.tests.numerics sol2::sol2 ${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})
|
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)
|
SOL_ALL_SAFETIES_ON=1)
|
||||||
|
|
|
@ -27,7 +27,17 @@ file(GLOB_RECURSE sources
|
||||||
CONFIGURE_DEPENDS
|
CONFIGURE_DEPENDS
|
||||||
source/*.cpp)
|
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)
|
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()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user