Set working directory to the install directory so that cmake can find includes in the engine root's cmake directory. (#4328)

Signed-off-by: amzn-sj <srikkant@amazon.com>
This commit is contained in:
SJ
2021-09-27 09:48:59 -07:00
committed by GitHub
parent 5b6e342fe1
commit 1dbf9157ea
+3 -1
View File
@@ -155,7 +155,9 @@ function(ly_copy source_file target_directory)
endfunction()
function(ly_download_and_codesign_sdk_python)
execute_process(COMMAND ${CMAKE_COMMAND} -DPAL_PLATFORM_NAME=Mac -DLY_3RDPARTY_PATH=${CMAKE_INSTALL_PREFIX}/python -P ${CMAKE_INSTALL_PREFIX}/python/get_python.cmake)
execute_process(COMMAND ${CMAKE_COMMAND} -DPAL_PLATFORM_NAME=Mac -DLY_3RDPARTY_PATH=${CMAKE_INSTALL_PREFIX}/python -P ${CMAKE_INSTALL_PREFIX}/python/get_python.cmake
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}
)
fixup_python_framework(${CMAKE_INSTALL_PREFIX}/python/runtime/@LY_PYTHON_PACKAGE_NAME@/Python.framework)
codesign_python_framework_binaries(${CMAKE_INSTALL_PREFIX}/python/runtime/@LY_PYTHON_PACKAGE_NAME@/Python.framework)
codesign_file(${CMAKE_INSTALL_PREFIX}/python/runtime/@LY_PYTHON_PACKAGE_NAME@/Python.framework @LY_ROOT_FOLDER@/python/Platform/Mac/PythonEntitlements.plist)