Tweak for Intel on Windows.

This commit is contained in:
Laurent Rineau 2011-03-29 15:35:40 +00:00
parent 5604fef79f
commit bfc2b1be9a
1 changed files with 5 additions and 1 deletions

View File

@ -166,9 +166,13 @@ 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" )
if(WIN32)
uniquely_add_flags( CGAL_CXX_FLAGS "/fp:strict" )
else()
uniquely_add_flags( CGAL_CXX_FLAGS "-fp-model strict" )
endif()
endif()
endif()
if ( CMAKE_COMPILER_IS_GNUCXX )