1# 2# SPDX-License-Identifier: BSD-3-Clause 3# SPDX-FileCopyrightText: Copyright TF-RMM Contributors. 4# 5 6# 7# Set up the configuration types for both single and multi-configuration 8# generators. 9# 10 11set(config_types "Debug" "Release") 12set(default_config "Release") 13 14get_property(RMM_MULTI_CONFIG GLOBAL PROPERTY "GENERATOR_IS_MULTI_CONFIG") 15 16if(RMM_MULTI_CONFIG) 17 arm_config_option( 18 NAME CMAKE_CONFIGURATION_TYPES 19 HELP "Multi-generator configuration types." 20 DEFAULT "${config_types}" 21 TYPE INTERNAL) 22 23 arm_config_option( 24 NAME CMAKE_DEFAULT_BUILD_TYPE 25 HELP "Default multi-generator configuration type." 26 DEFAULT "${default_config}" 27 TYPE INTERNAL) 28else() 29 arm_config_option( 30 NAME CMAKE_BUILD_TYPE 31 HELP "Build type." 32 STRINGS ${config_types} 33 DEFAULT ${default_config} 34 FORCE NOT CMAKE_BUILD_TYPE) 35endif() 36