From 72368b71f33b8f50fefe065049c79cb2cae2b1f8 Mon Sep 17 00:00:00 2001 From: Tobias Schmidt <tobias.schmidt@unibas.ch> Date: Thu, 14 Jun 2012 18:07:47 +0200 Subject: [PATCH] set CXX flag -fno-strict-aliasing to fix failing geom unittest (BZDNG-243) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e65ba2323..34fc57c57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -234,6 +234,11 @@ if (ENABLE_SPNAV) find_package(SpNav REQUIRED) endif() +if (CMAKE_COMPILER_IS_GNUCXX) + set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fno-strict-aliasing" CACHE STRING "" FORCE) +endif() + + # basic environment include_directories(${Boost_INCLUDE_DIRS} ${FFTW_INCLUDE_PATH} -- GitLab