Commit 7c589bb6 authored by Jan Möbius's avatar Jan Möbius

Default to release build type if not selected via cmake. Only on non Win platforms

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1241 fdac6126-5c0c-442c-9429-916003d36597
parent efa160cc
......@@ -7,6 +7,11 @@ if("${PROJECT_NAME}" STREQUAL "")
project (OpenMesh)
endif()
if (NOT WIN32 AND NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Release")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()
# add our macro directory to cmake search path
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set (CMAKE_DEBUG_POSTFIX "d")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment