From b348a02b855b29ac9f84ddff9ab6a824ba118160 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Tue, 15 Mar 2016 13:58:53 +0100 Subject: [PATCH] cmake: fix printed C/CXX flags Build type-specific flags are added before other flags, reflect this in the output. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29277fac..dd120821 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -458,9 +458,9 @@ message(STATUS "summary of build options: Compiler: Build type: ${CMAKE_BUILD_TYPE} C compiler: ${CMAKE_C_COMPILER} - CFLAGS: ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${_build_type}} + CFLAGS: ${CMAKE_C_FLAGS_${_build_type}} ${CMAKE_C_FLAGS} C++ compiler: ${CMAKE_CXX_COMPILER} - CXXFLAGS: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${_build_type}} + CXXFLAGS: ${CMAKE_CXX_FLAGS_${_build_type}} ${CMAKE_CXX_FLAGS} WARNCFLAGS: ${WARNCFLAGS} CXX1XCXXFLAGS: ${CXX1XCXXFLAGS} Python: