From 7850024f5051eeec492aa3042d0b267c875cd5c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 2 May 2018 13:40:27 +0200 Subject: [PATCH] handle empty build type --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f4ce5cd25..347c09b60 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ if ( CGAL_FOUND ) include_directories(BEFORE patches_in_CGAL_4.2/include) endif() - if (${CMAKE_BUILD_TYPE} STREQUAL Release) + if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") if(CMAKE_COMPILER_IS_GNUCXX) message (STATUS "Release mode with g++: using -fno-strict-aliasing flags") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing")