diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-15 12:09:00 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-15 12:21:48 +0100 |
commit | 9f84e5b548a94726814ec117d6d2e17695f3de4a (patch) | |
tree | a5b048083e2303ff6b8fb6eb11457dc27e6bce52 /external | |
parent | 79ee48e0f68a3c2db2e75615cf26d4c7a239744a (diff) |
cmake: disable RTTI except for Corrade test suite
Diffstat (limited to 'external')
-rw-r--r-- | external/CMakeLists.txt | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 80c8de81..b9ad5a2a 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -240,14 +240,27 @@ if(FLOORMAT_SUBMODULE-DEPENDENCIES) if(MAGNUM_BUILD_TESTS OR CORRADE_BUILD_TESTS AND NOT DEFINED CORRADE_TESTSUITE_TEST_TARGET) sets(STRING CORRADE_TESTSUITE_TEST_TARGET corrade-test) endif() + fm_add_sdl2() + #fm_add_luajit() + if(MSVC) + add_compile_options(-GR-) + else() + add_compile_options(-fno-rtti) + endif() add_subdirectory(fmt) add_subdirectory(json) add_subdirectory(corrade) - fm_add_sdl2() + if(MSVC) + target_compile_options(CorradeTestSuiteObjects PUBLIC -GR) + target_compile_options(CorradeTestSuite PUBLIC -GR) + + else() + target_compile_options(CorradeTestSuiteObjects PUBLIC -frtti) + target_compile_options(CorradeTestSuite PUBLIC -frtti) + endif() add_subdirectory(magnum) add_subdirectory(magnum-plugins) add_subdirectory(magnum-integration) - #fm_add_luajit() endfunction() if(MAGNUM_BUILD_PLUGINS_STATIC) |