From 35568d97e5fc03502bcf602e2bc342bd2581f41b Mon Sep 17 00:00:00 2001 From: Eric Phister <52085794+amzn-phist@users.noreply.github.com> Date: Thu, 17 Jun 2021 15:31:49 -0500 Subject: [PATCH] Fixes an issue configuring with external project (#1408) With engine-centric builds where LY_PROJECTS has paths that sit outside the engine, there was an erroneous fatal message that would occur. --- cmake/Platform/Common/Install_common.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/Platform/Common/Install_common.cmake b/cmake/Platform/Common/Install_common.cmake index 6998c260b7..59a38132bc 100644 --- a/cmake/Platform/Common/Install_common.cmake +++ b/cmake/Platform/Common/Install_common.cmake @@ -70,7 +70,9 @@ function(ly_setup_target OUTPUT_CONFIGURED_TARGET ALIAS_TARGET_NAME absolute_tar string(REGEX REPLACE "/$" "" include_directory "${include_directory}") cmake_path(IS_PREFIX LY_ROOT_FOLDER ${absolute_target_source_dir} NORMALIZE include_directory_child_of_o3de_root) if(NOT include_directory_child_of_o3de_root) - message(FATAL_ERROR "Include directory of \"${include_directory}\" is outside of the O3DE root folder of \"${LY_ROOT_FOLDER}\". For the INSTALL step, the O3DE root folder must be a prefix of all include directories") + # Include directory is outside of the O3DE root folder ${LY_ROOT_FOLDER}. + # For the INSTALL step, the O3DE root folder must be a prefix of all include directories. + continue() endif() cmake_path(RELATIVE_PATH include_directory BASE_DIRECTORY ${LY_ROOT_FOLDER} OUTPUT_VARIABLE rel_include_dir)