From 7fb1a1b10adad10ce55807620ec7e2b21a12492e Mon Sep 17 00:00:00 2001 From: Faruk D Date: Tue, 27 Feb 2018 15:58:41 +0100 Subject: [PATCH] define cxx flags before the status message --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2515d57..1cf92cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,6 +118,9 @@ if (NOT "$ENV{CASACORE_INCLUDE}" STREQUAL "") endif() +#--------------------------------------- build parameters for all targets +set (CMAKE_CXX_FLAGS "-Wall -g -pg -Wextra -std=c++11 -W -Wpointer-arith -Woverloaded-virtual -Wwrite-strings -pedantic -Wno-long-long -O3 -ansi -fPIC -fpermissive -fno-omit-frame-pointer -DNDEBUG -fno-inline-functions -fno-inline-functions-called-once -fno-optimize-sibling-calls") + #--------------------------------------- summary @@ -156,9 +159,6 @@ message (STATUS "WCSLIB-LIBS ........... = ${WCSLIB_LIBRARIES}") -#--------------------------------------- build parameters for all targets -set (CMAKE_CXX_FLAGS "-Wall -g -pg -Wextra -std=c++11 -W -Wpointer-arith -Woverloaded-virtual -Wwrite-strings -pedantic -Wno-long-long -O3 -ansi -fPIC -fpermissive -fno-omit-frame-pointer -DNDEBUG -fno-inline-functions -fno-inline-functions-called-once -fno-optimize-sibling-calls") - #--------------------------------------- include directories add_subdirectory(src)