mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Simplified the cmake files by putting the stuff to make Release
the default build into a single file.
This commit is contained in:
parent
7dfea35cd4
commit
60a1de67e1
9
dlib/release_build_by_default
Normal file
9
dlib/release_build_by_default
Normal file
@ -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…
Reference in New Issue
Block a user