From 9d14e5e42bf698f1e5987c2551facd432826b0ca Mon Sep 17 00:00:00 2001 From: Valentin Volkl Date: Sun, 26 Feb 2023 16:38:07 +0100 Subject: [PATCH] MacOS: fix for dlopen errors due to SIP --- k4FWCore/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/k4FWCore/CMakeLists.txt b/k4FWCore/CMakeLists.txt index 3142ee14..20ea8899 100644 --- a/k4FWCore/CMakeLists.txt +++ b/k4FWCore/CMakeLists.txt @@ -4,6 +4,12 @@ find_package(podio) +if(APPLE) + file(READ scripts/k4run filedata) + string(REGEX REPLACE "#!/usr/bin/env python" "#!${Python_EXECUTABLE}" filedata "${filedata}") + file(WRITE scripts/k4run "${filedata}") +endif(APPLE) + gaudi_install(SCRIPTS)