Simplified the cmake files by putting the stuff to make Release

the default build into a single file.
pull/2/head
Davis King 13 years ago
parent 7dfea35cd4
commit 60a1de67e1

@ -0,0 +1,9 @@
#set default build type to Release
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: Debug Release
RelWithDebInfo MinSizeRel." FORCE)
endif()

@ -13,11 +13,7 @@ endif()
#set default build type to Release
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: Debug Release
RelWithDebInfo MinSizeRel." FORCE)
endif()
include(../dlib/release_build_by_default)

@ -41,9 +41,5 @@ INSTALL(TARGETS ${target_name}
#set default build type to Release
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: Debug Release
RelWithDebInfo MinSizeRel." FORCE)
endif()
include(../../dlib/release_build_by_default)

@ -39,11 +39,5 @@ INSTALL(TARGETS ${target_name}
RUNTIME DESTINATION bin
)
#set default build type to Release
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: Debug Release
RelWithDebInfo MinSizeRel." FORCE)
endif()
include(../../dlib/release_build_by_default)

@ -41,11 +41,6 @@ INSTALL(TARGETS ${target_name}
RUNTIME DESTINATION bin
)
#set default build type to Release
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: Debug Release
RelWithDebInfo MinSizeRel." FORCE)
endif()
include(../../dlib/release_build_by_default)

Loading…
Cancel
Save