fix bug in cmake file cgal-flags when using clang

felipesanches-svg
Don Bright 2013-04-14 01:11:09 -05:00
parent ff050c3792
commit c5bdc40c26
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ if("${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}" VERSION_LESS 3.6)
endif()
inclusion(CGAL_DIR CGAL_INCLUDE_DIRS)
if(CMAKE_CXX_COMPILER MATCHES ".*clang.*")
if(CMAKE_CXX_COMPILER MATCHES ".*clang.*" AND NOT STREQUAL ${CGAL_CXX_FLAGS_INIT} "" )
string(REPLACE "-frounding-math" "" CGAL_CXX_FLAGS_INIT ${CGAL_CXX_FLAGS_INIT})
string(REPLACE "--param=ssp-buffer-size=4" "" CGAL_CXX_FLAGS_INIT ${CGAL_CXX_FLAGS_INIT})
endif()