summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-15 19:30:10 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-15 20:09:40 -0200
commitd7a8026ba537a8db0fe217f5b52bcfaadaaa0265 (patch)
treed94d60adb485af861d3cc9c3bcc99bd6c227f9b8 /CMakeLists.txt
parent3e562e090d65067ba93c451fa104db100101d77c (diff)
downloadshiboken-d7a8026ba537a8db0fe217f5b52bcfaadaaa0265.tar.gz
shiboken-d7a8026ba537a8db0fe217f5b52bcfaadaaa0265.tar.xz
shiboken-d7a8026ba537a8db0fe217f5b52bcfaadaaa0265.zip
Add -Wno-strict-aliasing to GCC compiler flags.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f0eec53f..dea73965 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,9 +16,9 @@ if (MSVC)
set(CMAKE_CXX_FLAGS "/DWIN32 /D_WINDOWS /w /EHsc- /GS- /GR- /DLIBSHIBOKEN_BUILD -D_SCL_SECURE_NO_WARNINGS")
else()
if (${CMAKE_BUILD_TYPE} STREQUAL "Release")
- set(CMAKE_CXX_FLAGS "-Wall -DNDEBUG -O2 -Wl,-O1 -Wl,--hash-style=gnu -fvisibility=hidden")
+ set(CMAKE_CXX_FLAGS "-Wall -Wno-strict-aliasing -DNDEBUG -O2 -Wl,-O1 -Wl,--hash-style=gnu -fvisibility=hidden")
else()
- set(CMAKE_CXX_FLAGS "-g -Wall -fvisibility=hidden")
+ set(CMAKE_CXX_FLAGS "-g -Wall -Wno-strict-aliasing -fvisibility=hidden")
endif()
endif()
if (WIN32 OR AVOID_PROTECTED_HACK)