summaryrefslogtreecommitdiff
blob: 6aabdc395395d9f2f7966dca2f43c97ca187a61e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Remove customized handling of ${CMAKE_BUILD_TYPE} which conflicts with
how Gentoo handles ${CMAKE_BUILD_TYPE}:
* CMake Error at cmake/modules/CGAL_SetupFlags.cmake:65 (message):
*   Gentoo is not a valid build type: only Release or Debug is allowed
* Call Stack (most recent call first):
*   CMakeLists.txt:519 (include)

--- CGAL-4.7/cmake/modules/CGAL_SetupFlags.cmake
+++ CGAL-4.7/cmake/modules/CGAL_SetupFlags.cmake
@@ -61,9 +61,6 @@
   add_definitions(-DCGAL_TEST_SUITE)
 endif()
 
-if ( NOT "${CMAKE_BUILD_TYPE}" STREQUAL "Release" AND NOT "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" )
-  message( FATAL_ERROR "${CMAKE_BUILD_TYPE} is not a valid build type: only Release or Debug is allowed" )
-endif()
 
 message( STATUS "Build type: ${CMAKE_BUILD_TYPE}" )