From c5bdc40c26728dbcaa1bfb7f00e82b7448f32d62 Mon Sep 17 00:00:00 2001 From: Don Bright Date: Sun, 14 Apr 2013 01:11:09 -0500 Subject: fix bug in cmake file cgal-flags when using clang diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fff537a..55b6924 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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() -- cgit v0.10.1