From 4ea1cdc2a1c9425ea39d7fc2d6a4c354afaacbdd Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 2 Nov 2016 22:27:38 +0100 Subject: [PATCH] Don't recursively include compile flags. --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9755a2ee..2a36515f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1032,9 +1032,9 @@ IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") SET( CMAKE_CXX_FLAGS - "${CMAKE_CXX_FLAGS} -D_REENTRANT=1 -W -Wall -pedantic -Warray-bounds-pointer-arithmetic -Wold-style-cast -Wconversion -Wcast-align -Wno-sign-conversion" + "-D_REENTRANT=1 -W -Wall -pedantic -Warray-bounds-pointer-arithmetic -Wold-style-cast -Wconversion -Wcast-align -Wno-sign-conversion" CACHE STRING - "g++ Compiler Flags" + "C++ Compiler Flags" FORCE ) @@ -1050,9 +1050,9 @@ ELSE() SET( CMAKE_CXX_FLAGS - "${CMAKE_CXX_FLAGS} -D_REENTRANT=1 -W -Wall -pedantic -Wpointer-arith -Wold-style-cast -Wconversion -Wcast-align -Wno-long-long" + "-D_REENTRANT=1 -W -Wall -pedantic -Wpointer-arith -Wold-style-cast -Wconversion -Wcast-align -Wno-long-long" CACHE STRING - "g++ Compiler Flags" + "C++ Compiler Flags" FORCE )