diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-04-14 06:11:09 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-04-14 06:11:09 (GMT) |
commit | c5bdc40c26728dbcaa1bfb7f00e82b7448f32d62 (patch) | |
tree | 212e0c8aea91f57ecb241d32169528efc3372f2b | |
parent | ff050c37921e4fb20095dab97bb6b08c7ca68432 (diff) |
fix bug in cmake file cgal-flags when using clang
-rw-r--r-- | tests/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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() |