Skip to content

Commit

Permalink
handle empty build type
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed May 2, 2018
1 parent 08bcd94 commit 7850024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -40,7 +40,7 @@ if ( CGAL_FOUND )
include_directories(BEFORE patches_in_CGAL_4.2/include) include_directories(BEFORE patches_in_CGAL_4.2/include)
endif() endif()


if (${CMAKE_BUILD_TYPE} STREQUAL Release) if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX)
message (STATUS "Release mode with g++: using -fno-strict-aliasing flags") message (STATUS "Release mode with g++: using -fno-strict-aliasing flags")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing")
Expand Down

0 comments on commit 7850024

Please sign in to comment.