From 31bad3f2b4e9b90fa61505bc88ad34403c463b8b Mon Sep 17 00:00:00 2001 From: gablank Date: Tue, 27 Jan 2015 14:12:06 +0100 Subject: [PATCH] -O3 with MinGW 4.9.1 on Windows crashes, only use -O2 for now --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b2d0d22..99aa4031 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,10 @@ project(multivariate-splines) cmake_minimum_required(VERSION 2.8) set(CMAKE_BUILD_TYPE Release) +if(WIN32) + set(CMAKE_CXX_FLAGS_RELEASE "-O2") +endif(WIN32) + set(MULTIVARIATESPLINES_VERSION_MAJOR 1) set(MULTIVARIATESPLINES_VERSION_MINOR 2) set(MULTIVARIATESPLINES_VERSION ${MULTIVARIATESPLINES_VERSION_MAJOR}-${MULTIVARIATESPLINES_VERSION_MINOR})