From 404d6864fde0f6e8b45e9a3009bec55a87599497 Mon Sep 17 00:00:00 2001 From: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> Date: Wed, 1 Sep 2021 08:44:46 -0700 Subject: [PATCH] proper set of CMAKE_INSTALL_PREFIX Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> --- cmake/OutputDirectory.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/OutputDirectory.cmake b/cmake/OutputDirectory.cmake index 3b8e1b90eb..c1409bd825 100644 --- a/cmake/OutputDirectory.cmake +++ b/cmake/OutputDirectory.cmake @@ -13,5 +13,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin CACHE PATH "Build dir # We install outside of the binary dir because our install support muliple platforms to # be installed together. We also have an exclusion rule in the AP that filters out the -# "build" folder which is a common binary dir -ly_set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/install) +# "install" folder to avoid the AP picking it up +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + ly_set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/install) +endif()