[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Adonthell-devel] [PATCH] Fixed new -fno-strict-aliasing so we can still
From: |
Chris Frey |
Subject: |
[Adonthell-devel] [PATCH] Fixed new -fno-strict-aliasing so we can still override CXX_FLAGS |
Date: |
Sat, 4 Oct 2008 18:36:23 -0400 |
User-agent: |
Mutt/1.4.1i |
Include the old CMAKE_CXX_FLAGS in the overridden setting so that it is
still possible to override compiler flags from the command line.
---
CMakeLists.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e4a0274..48400bc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,7 @@ endif(COMMAND cmake_policy)
add_definitions(-DVERSION="${ESCAPE}0.4.0${ESCAPE}" -DHAVE_CONFIG_H=1)
if(CMAKE_COMPILER_IS_GNUCXX)
- set(CMAKE_CXX_FLAGS "-fno-strict-aliasing" CACHE INTERNAL "")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing" CACHE
INTERNAL "")
endif(CMAKE_COMPILER_IS_GNUCXX)
if(APPLE)
--
1.6.0.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Adonthell-devel] [PATCH] Fixed new -fno-strict-aliasing so we can still override CXX_FLAGS,
Chris Frey <=