|
|
|
@ -77,8 +77,15 @@ include(WriteBasicConfigVersionFile)
|
|
|
|
|
|
|
|
|
|
include(Definitions.cmake)
|
|
|
|
|
|
|
|
|
|
#hide warnings
|
|
|
|
|
string(REPLACE "-Wall" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
|
|
|
string(REPLACE "-Wformat-security" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
|
|
|
string(REPLACE "-Wdeprecated-declarations" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
|
|
|
string(REPLACE "-Wreorder" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
|
|
|
string(REPLACE "-Wunused-variable" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
|
|
|
string(REPLACE "-Wunused-parameter" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
|
|
|
|
|
|
|
|
#add format security check
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat -Werror=format-security")
|
|
|
|
|
|
|
|
|
|
message(STATUS "COMPILER FLAGS : ${CMAKE_CXX_FLAGS}")
|
|
|
|
|
|
|
|
|
|