mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
cmake: Set default build type to Release
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
021f4d553b
commit
b3b740eb22
@ -88,6 +88,12 @@ endif()
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
message(STATUS "Setting build type to 'Release' as none was specified.")
|
||||
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
|
||||
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release")
|
||||
endif()
|
||||
|
||||
include(CheckCXXCompilerFlag)
|
||||
|
||||
# Check for C++ standard to use
|
||||
|
Loading…
Reference in New Issue
Block a user