From b438e36a63c55b3bb056e08b9240aed7949da05e Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 5 Feb 2022 16:26:53 +0100 Subject: [PATCH] Allow angelscript to change rpath during build --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62840ba..9cc0ffb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ if (SCRIPT_PROVIDER STREQUAL "angelscript") if (Angelscript_ADDED) execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" . -B ${Angelscript_BINARY_DIR} - -DBUILD_SHARED_LIBS=${SHARED} -DMSVC=${WINDOWS} -DLINK_STD_STATICALLY=${STATICC} + -DBUILD_SHARED_LIBS=${SHARED} -DMSVC=${WINDOWS} -DLINK_STD_STATICALLY=${STATICC} -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON RESULT_VARIABLE result WORKING_DIRECTORY ${Angelscript_SOURCE_DIR}/angelscript/projects/cmake) execute_process(COMMAND ${CMAKE_COMMAND} --build ${Angelscript_BINARY_DIR}