diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 81f1e810..0d0a705c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -136,7 +136,13 @@ foa_tests(SOURCES exception/merge_exception_tests.cpp) # CFOA tests -cfoa_tests(SOURCES cfoa/insert_tests.cpp COMPILE_OPTIONS $<$:/bigobj>) +set(cfoa_insert_test_options $<$:/bigobj>) + +if(MINGW AND CMAKE_SIZEOF_VOID_P EQUAL 4) + list(APPEND cfoa_insert_test_options -O0 -g0) # GCC MinGW32 OOMs otherwise +endif() + +cfoa_tests(SOURCES cfoa/insert_tests.cpp COMPILE_OPTIONS ${cfoa_insert_test_options}) cfoa_tests(SOURCES cfoa/erase_tests.cpp) cfoa_tests(SOURCES cfoa/try_emplace_tests.cpp) cfoa_tests(SOURCES cfoa/emplace_tests.cpp)