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
This commit is contained in:
@@ -7,6 +7,11 @@ if("${PROJECT_NAME}" STREQUAL "")
|
|||||||
project (OpenMesh)
|
project (OpenMesh)
|
||||||
endif()
|
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
|
# 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_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||||
set (CMAKE_DEBUG_POSTFIX "d")
|
set (CMAKE_DEBUG_POSTFIX "d")
|
||||||
|
|||||||
Reference in New Issue
Block a user