diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake index 05c19abab9..f856fa907e 100644 --- a/cmake/CompileFlags.cmake +++ b/cmake/CompileFlags.cmake @@ -97,6 +97,12 @@ macro(compile_flags) "$<$:-flifetime-dse=1>" ) endif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + + if (APPLE) + add_compile_options( + -fno-stack-check + ) + endif (APPLE) elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel") add_compile_options( -Wall