From b157aa0a337dc89d6817f2a26d2c3dd1e44efc9a Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Tue, 2 Sep 2025 11:40:30 -0700 Subject: [SharedCache] Move plugin_rpath calls into BN_INTERNAL_BUILD blocks These calls set the rpaths used for release builds of the dylibs using a macro that isn't available in the API repository. They are not necessary when building the shared cache plug-in outside of the context of the app. --- view/kernelcache/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/kernelcache/CMakeLists.txt') diff --git a/view/kernelcache/CMakeLists.txt b/view/kernelcache/CMakeLists.txt index aa52d2a3..56e61e88 100644 --- a/view/kernelcache/CMakeLists.txt +++ b/view/kernelcache/CMakeLists.txt @@ -47,6 +47,7 @@ if(BN_INTERNAL_BUILD) set_target_properties(kernelcache PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR} RUNTIME_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR}) + plugin_rpath(kernelcache) else() set_target_properties(kernelcache PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out/plugins @@ -66,7 +67,6 @@ target_include_directories(kernelcache PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMA target_link_libraries(kernelcache PUBLIC kernelcacheapi binaryninjaapi kernelcachecore) # kernelcacheworkflow) -plugin_rpath(kernelcache) set(COMPILE_DEFS "") -- cgit v1.3.1