From: Gabriel Corona Date: Fri, 27 May 2016 13:07:14 +0000 (+0200) Subject: [cmake] Give CMAKE_C_FLAGS and CMAKE_CXX_FLAGS higher priority than the warning flags X-Git-Tag: v3_14~1138^2^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d17f791c935ea6a886030625415f3872b2508b25?ds=sidebyside [cmake] Give CMAKE_C_FLAGS and CMAKE_CXX_FLAGS higher priority than the warning flags Ignore this warning, would you kindly? --- diff --git a/tools/cmake/GCCFlags.cmake b/tools/cmake/GCCFlags.cmake index 144ac3224a..077e85ad43 100644 --- a/tools/cmake/GCCFlags.cmake +++ b/tools/cmake/GCCFlags.cmake @@ -129,8 +129,8 @@ if(NOT enable_debug) set(CMAKE_CXX_FLAGS "-DNDEBUG ${CMAKE_CXX_FLAGS}") endif() -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${optCFLAGS} ${warnCFLAGS}") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${optCFLAGS} ${warnCXXFLAGS}") +set(CMAKE_C_FLAGS "${warnCFLAGS} ${CMAKE_C_FLAGS} ${optCFLAGS}") +set(CMAKE_CXX_FLAGS "${warnCXXFLAGS} ${CMAKE_CXX_FLAGS} ${optCFLAGS}") # Try to make Mac a bit more complient to open source standards if(CMAKE_SYSTEM_NAME MATCHES "Darwin")