more cleanup in compile options
DEBUG definition is useless
no reason to enable -fno-stack-protector
@@ -16,14 +16,6 @@ function(target_default_compile_options_c THIS)
C_STANDARD_REQUIRED ON
C_VISIBILITY_PRESET hidden)
- if (CMAKE_C_COMPILER_ID STREQUAL "Clang"
- OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang"
- OR CMAKE_C_COMPILER_ID STREQUAL "GNU")
-
- target_compile_options(${THIS} PRIVATE
- -fno-stack-protector
- $<$<CONFIG:DEBUG>:-DDEBUG>)
- endif()
endfunction()
function(target_default_compile_options_cxx THIS)
@@ -33,13 +25,4 @@ function(target_default_compile_options_cxx THIS)
CXX_STANDARD 11
CXX_STANDARD_REQUIRED ON)
- if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
- OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang"
- OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
-
- target_compile_options(${THIS} PRIVATE
- -fno-stack-protector
- $<$<CONFIG:DEBUG>:-DDEBUG>)
- endif ()
-
endfunction()
