File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -244,8 +244,9 @@ function(add_umf_target_compile_options name)
244244 target_compile_definitions (${name} PRIVATE -D_FORTIFY_SOURCE=2)
245245 endif ()
246246 if (UMF_DEVELOPER_MODE)
247- target_compile_options (${name} PRIVATE -fno-omit-frame-pointer
248- -fstack-protector-strong)
247+ target_compile_options (
248+ ${name} PRIVATE -fno-omit-frame-pointer
249+ -fstack-protector-strong -Werror)
249250 endif ()
250251 if (UMF_USE_COVERAGE)
251252 if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" )
Original file line number Diff line number Diff line change @@ -71,8 +71,11 @@ function(build_umf_test)
7171 # tests retrieve arguments using 'GetParam()', which applies a 'const'
7272 # qualifier often discarded in the test scenarios.
7373 target_compile_options (${TEST_TARGET_NAME} PRIVATE -Wno-cast-qual)
74- endif ()
7574
75+ if (UMF_DEVELOPER_MODE)
76+ target_compile_options (${TEST_TARGET_NAME} PRIVATE -Werror)
77+ endif ()
78+ endif ()
7679 target_link_directories (${TEST_TARGET_NAME} PRIVATE ${LIB_DIRS} )
7780
7881 target_include_directories (
You can’t perform that action at this time.
0 commit comments