Răsfoiți Sursa

gcc guard around remove_cxx -stdlib

Former-commit-id: 38186cb30231059ff71d6181979f4ea4b8afcd9c
Alec Jacobson 10 ani în urmă
părinte
comite
0a35e3e862
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      tutorial/609_Boolean/CMakeLists.txt

+ 3 - 1
tutorial/609_Boolean/CMakeLists.txt

@@ -5,7 +5,9 @@ find_package(CGAL REQUIRED)
 include(${CGAL_USE_FILE})
 # CGAL's monkeying with all of the flags. Rather than change the CGAL_USE_FILE
 # just get ride of this flag.
-remove_cxx_flag("-stdlib=libc++")
+if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+  remove_cxx_flag("-stdlib=libc++")
+endif()
 
 # This is absolutely necessary for Exact Construction