cxx: clear the default cmake cxxflags/cflags

cmake forces some values we don't want. it's better to start from
scratch.
This commit is contained in:
Danny Robson 2017-05-12 14:56:47 +10:00
parent 2b9bff932c
commit cec999bfdf

View File

@ -5,6 +5,14 @@ endif ()
set (__nc_cxx TRUE) set (__nc_cxx TRUE)
###############################################################################
# clear the default flags because they include optimisation flags we
# explicitly do not want (ie, O3).
set (CMAKE_CXX_FLAGS_RELEASE "")
set (CMAKE_C_FLAGS_RELEASE "")
set (CMAKE_CXX_FLAGS_DEBUG "")
set (CMAKE_C_FLAGS_DEBUG "")
############################################################################### ###############################################################################
include (compile_flag) include (compile_flag)