Merge pull request #3790 from peter-toft-greve/development

Add fix for cmake control of CMAKE_BUILD_TYPE only if mbedtls is the root project
This commit is contained in:
Gilles Peskine 2020-10-30 09:44:29 +01:00 committed by GitHub
commit 2da4292dc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,9 +116,12 @@ option: \n\
endif() endif()
endif() endif()
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} # If this is the root project add longer list of available CMAKE_BUILD_TYPE values
CACHE STRING "Choose the type of build: None Debug Release Coverage ASan ASanDbg MemSan MemSanDbg Check CheckFull" if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
FORCE) set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}
CACHE STRING "Choose the type of build: None Debug Release Coverage ASan ASanDbg MemSan MemSanDbg Check CheckFull"
FORCE)
endif()
# Create a symbolic link from ${base_name} in the binary directory # Create a symbolic link from ${base_name} in the binary directory
# to the corresponding path in the source directory. # to the corresponding path in the source directory.