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()