Limits configuration types a project sees when using an engine SDK (#4033)
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>monroegm-disable-blank-issue-2
parent
d9cbc97ec0
commit
5909e471e6
@ -0,0 +1,14 @@
|
||||
#
|
||||
# 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)
|
||||
|
||||
# By default, CMAKE_CONFIGURATION_TYPES = LY_CONFIGURATION_TYPES, but in installed SDKs, this
|
||||
# file will be replaced with cmake/install/ConfigurationTypes.cmake and discover configurations
|
||||
# that are available from the SDK
|
||||
set(CMAKE_CONFIGURATION_TYPES ${LY_CONFIGURATION_TYPES} CACHE STRING "" FORCE)
|
||||
@ -0,0 +1,11 @@
|
||||
#
|
||||
# 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)
|
||||
|
||||
list(APPEND CMAKE_CONFIGURATION_TYPES @CMAKE_INSTALL_CONFIG_NAME@)
|
||||
@ -0,0 +1,22 @@
|
||||
#
|
||||
# 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
|
||||
file(GLOB configuration_type_files "cmake/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
|
||||
Loading…
Reference in New Issue