fix build with Fedora requirements

--simplify warnings and add formalt security checks

BUG:440759
pull/22/head
Michail Vourlakos 4 years ago
parent afac575877
commit a67e3c050f

@ -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}")

Loading…
Cancel
Save