From bfc2b1be9ad3f5bb9aee29ed8489f25963344e70 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 29 Mar 2011 15:35:40 +0000 Subject: [PATCH] Tweak for Intel on Windows. --- Installation/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index e294265338a..22ffa294dbd 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -166,7 +166,11 @@ if( "${CMAKE_CXX_COMPILER}" MATCHES "icl" OR "${CMAKE_CXX_COMPILER}" MATCHES "ic message("Intel Compiler version ${IntelCompiler_VERSION} is not supported by CGAL-${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}! (too old)") else() message( STATUS "Using Intel Compiler version 11 or later. Adding -fp-model strict" ) - uniquely_add_flags( CGAL_CXX_FLAGS "-fp-model strict" ) + if(WIN32) + uniquely_add_flags( CGAL_CXX_FLAGS "/fp:strict" ) + else() + uniquely_add_flags( CGAL_CXX_FLAGS "-fp-model strict" ) + endif() endif() endif()