You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
787 B

  1. --- a/cmake/Modules/DefineCompilerFlags.cmake
  2. +++ b/cmake/Modules/DefineCompilerFlags.cmake
  3. @@ -1,7 +1,6 @@
  4. # define system dependent compiler flags
  5. include(CheckCCompilerFlag)
  6. -include(CheckCCompilerFlagSSP)
  7. if (UNIX AND NOT WIN32)
  8. #
  9. @@ -21,11 +20,6 @@ if (UNIX AND NOT WIN32)
  10. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
  11. endif (WITH_FPIC)
  12. - check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR)
  13. - if (WITH_STACK_PROTECTOR)
  14. - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector")
  15. - endif (WITH_STACK_PROTECTOR)
  16. -
  17. if (CMAKE_BUILD_TYPE)
  18. string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
  19. if (CMAKE_BUILD_TYPE_LOWER MATCHES (release|relwithdebinfo|minsizerel))