From 2a4b5da2874b5c84fcb921116818d25e7abaa483 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Tue, 10 Nov 2009 20:11:49 -0200 Subject: Just disable the warning about strict-aliasing instead of disable the optimization. Reviewed by Marcelo Lira --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e6ef3f46b..312898da7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(pyside) cmake_minimum_required(VERSION 2.6) -set(CMAKE_CXX_FLAGS_RELEASE "-Wall -DNDEBUG -Os -Wl,-O1 -Wl,--hash-style=gnu -fno-strict-aliasing") +set(CMAKE_CXX_FLAGS_RELEASE "-Wall -DNDEBUG -Os -Wl,-O1 -Wl,--hash-style=gnu -Wno-strict-aliasing") set(CMAKE_CXX_FLAGS_DEBUG "-g -fno-common -Wall -fno-strict-aliasing") find_package(PythonLibs REQUIRED) -- cgit v1.2.3