aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f622050..852ef690 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,13 +88,13 @@ if(NOT BUILD_TESTING)
add_compile_options(
"$<$<CXX_COMPILER_ID:GNU>:-fstack-usage>"
- "$<$<CXX_COMPILER_ID:GNU>:-Wframe-larger-than=${STACK_FRAME_LIMIT}>"
+ "$<$<CXX_COMPILER_ID:GNU>:-Wstack-usage=${STACK_FRAME_LIMIT}>"
)
add_link_options(
"$<$<CXX_COMPILER_ID:GNU>:-fstack-usage>"
- "$<$<CXX_COMPILER_ID:GNU>:-Wframe-larger-than=${STACK_FRAME_LIMIT}>"
- "$<$<CXX_COMPILER_ID:GNU>:-Werror=frame-larger-than=${STACK_FRAME_LIMIT}>"
+ "$<$<CXX_COMPILER_ID:GNU>:-Wstack-usage=${STACK_FRAME_LIMIT}>"
+ "$<$<CXX_COMPILER_ID:GNU>:-Werror=stack-usage=${STACK_FRAME_LIMIT}>"
)
unset(STACK_FRAME_LIMIT)