diff --git a/cmake/GhcHelper.cmake b/cmake/GhcHelper.cmake index 4d9e5a0..ad72fd2 100644 --- a/cmake/GhcHelper.cmake +++ b/cmake/GhcHelper.cmake @@ -40,7 +40,7 @@ if (CMAKE_COMPILER_IS_GNUCXX AND (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 8.0 O if(${CMAKE_SYSTEM_NAME} MATCHES "Haiku") target_link_libraries(${targetName} network) endif() - target_compile_options(${targetName} PRIVATE $<$:-Wa,-mbig-obj>) + target_compile_options(${targetName} PRIVATE $<$,$>:-Wa,-mbig-obj>) target_compile_definitions(${targetName} PRIVATE USE_STD_FS) endif() @@ -69,7 +69,7 @@ macro(AddTestExecutableWithStdCpp cppStd) $<$,$>:-Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -Wpedantic -Werror -Wno-error=deprecated-declarations> $<$:-Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -Wpedantic -Wno-psabi -Werror -Wno-error=deprecated-declarations> $<$:/WX /wd4996> - $<$:-Wa,-mbig-obj> + $<$,$>:-Wa,-mbig-obj> $<$:--coverage>) if(CMAKE_CXX_COMPILER_ID MATCHES MSVC) target_compile_definitions(filesystem_test_cpp${cppStd} PRIVATE _CRT_SECURE_NO_WARNINGS) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1401ef0..5a529a2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -14,7 +14,7 @@ function(SetTestCompileOptions target_name) $<$,$>:-Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -Wpedantic -Werror -Wno-deprecated-declarations> $<$:-Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -Wpedantic -Wno-psabi -Werror -Wno-deprecated-declarations> $<$:/WX /wd4996> - $<$:-Wa,-mbig-obj>) + $<$,$>:-Wa,-mbig-obj>) endfunction() if(GHC_COVERAGE)