From 00f154f6bf3db4f3c848eb346bd4471c52d590e6 Mon Sep 17 00:00:00 2001 From: Luis Antonio Obis Aparicio Date: Fri, 1 May 2026 23:01:45 +0200 Subject: [PATCH 1/2] fix event viewer on macos --- CMakeLists.txt | 20 -------------------- cmake/thisREST.cmake | 5 +++-- source/framework/core/src/TRestDataSet.cxx | 2 ++ 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 557218d49..b5dd8e212 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -340,26 +340,6 @@ else () endif () -if (CMAKE_SYSTEM_NAME MATCHES "Darwin") # we must call library install here in - # MacOs - foreach (lib ${rest_libraries}) - install( - TARGETS ${lib} - RUNTIME DESTINATION bin - LIBRARY DESTINATION bin - ARCHIVE DESTINATION lib) - endforeach () - - foreach (exe ${rest_exes}) - install( - TARGETS ${exe} - RUNTIME DESTINATION bin - LIBRARY DESTINATION bin - ARCHIVE DESTINATION lib) - endforeach () - -endif () - # Copy pcm files if (CMAKE_SYSTEM_NAME MATCHES "Windows") diff --git a/cmake/thisREST.cmake b/cmake/thisREST.cmake index 450284ef2..7087444fb 100644 --- a/cmake/thisREST.cmake +++ b/cmake/thisREST.cmake @@ -136,13 +136,14 @@ ${loadLCG} \# check active shell by checking for existence of _VERSION variable if [[ -n \\\"\\\${BASH_VERSION}\\\" ]]; then - thisdir=\\\$(cd \\\$(dirname \\\${BASH_ARGV[0]}); pwd) + thisfile=\\\${BASH_SOURCE[0]} elif [[ -n \\\"\\\${ZSH_VERSION}\\\" ]]; then - thisdir=\\\$(cd \\\$(dirname \\\$0); pwd) + thisfile=\\\${(%):-%x} else echo \\\"Invalid shell! Either source with bash or zsh!\\\" return 1 fi +thisdir=\\\$(cd \\\"\\\$(dirname \\\"\\\${thisfile}\\\")\\\"; pwd) \# if thisroot.sh script is found we load the same ROOT version as used in compilation if [[ -f \\\"${thisROOT}\\\" ]]; then diff --git a/source/framework/core/src/TRestDataSet.cxx b/source/framework/core/src/TRestDataSet.cxx index 833b6d6e0..115aca3a9 100644 --- a/source/framework/core/src/TRestDataSet.cxx +++ b/source/framework/core/src/TRestDataSet.cxx @@ -302,6 +302,8 @@ #include "TRestRun.h" #include "TRestTools.h" +#include + ClassImp(TRestDataSet); /////////////////////////////////////////////// From f5f5afde961de11f3795409d74ed8ac60e3e966d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 22:49:08 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- source/framework/core/src/TRestDataSet.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/framework/core/src/TRestDataSet.cxx b/source/framework/core/src/TRestDataSet.cxx index 115aca3a9..22ba8334a 100644 --- a/source/framework/core/src/TRestDataSet.cxx +++ b/source/framework/core/src/TRestDataSet.cxx @@ -299,11 +299,11 @@ /// #include "TRestDataSet.h" +#include + #include "TRestRun.h" #include "TRestTools.h" -#include - ClassImp(TRestDataSet); ///////////////////////////////////////////////