You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
CMake
31 lines
1.3 KiB
CMake
#
|
|
# Copyright (c) Contributors to the Open 3D Engine Project.
|
|
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
#
|
|
#
|
|
|
|
include_guard(GLOBAL)
|
|
|
|
|
|
# In SDK builds CMAKE_CONFIGURATION_TYPES will be filled by entries generated per configuration build.
|
|
# At install time we generate `cmake/ConfigurationTypes_<config>.cmake` files that append the configuration
|
|
# to CMAKE_CONFIGURATION_TYPES
|
|
set(CMAKE_CONFIGURATION_TYPES "" CACHE STRING "" FORCE)
|
|
|
|
# For the SDK case, we want to only define the confiuguration types that have been added to the SDK
|
|
# We need to redeclare LY_BUILD_PERMUTATION because Configurations is one of the first things included by the
|
|
# root CMakeLists.txt. Even LY_MONOLITHIC_GAME is declared after, but since is a passed cache variable, and
|
|
# default is the same as undeclared, we can use it at this point.
|
|
if(LY_MONOLITHIC_GAME)
|
|
set(LY_BUILD_PERMUTATION Monolithic)
|
|
else()
|
|
set(LY_BUILD_PERMUTATION Default)
|
|
endif()
|
|
|
|
file(GLOB configuration_type_files "cmake/Platform/${PAL_PLATFORM_NAME}/${LY_BUILD_PERMUTATION}/ConfigurationTypes_*.cmake")
|
|
foreach(configuration_type_file ${configuration_type_files})
|
|
include(${configuration_type_file})
|
|
endforeach()
|
|
ly_set(CMAKE_CONFIGURATION_TYPES ${CMAKE_CONFIGURATION_TYPES}) # propagate to parent |