@@ -51,6 +51,42 @@ cmake -S <path-to-source> -B <path-to-build> -C <path-to-source>/FairSoftConfig.
5151
5252Set the installation prefix and more customization options in the [ ` FairSoftConfig.cmake ` ] ( ../FairSoftConfig.cmake ) file itself.
5353
54+ #### 3.1 CMake configure step for macOS users
55+
56+ There are two known problems to the compilation of FairSoft on macosx.
57+
58+ The first one is related to the version of the ** patch** command on macosx which
59+ does not support the needed parameters, so one needs ot install a version of
60+ the ** patch** command with brew. This package is already added in the setup
61+ script for macosx. Unfortunately the binary installed in the bin directory
62+ isn't named any longer ** patch** but ** gpatch** such that it isn't found any
63+ longer automatically. To allow CMake to find the proper version it is nedded
64+ to modify the PATH environment variable when running cmake
65+
66+ ```
67+ PATH=/usr/local/opt/gpatch/libexec/gnubin:$PATH cmake <all your parameters>
68+ ```
69+
70+ The second problem is related to the macosx, compiler and SDK versions, such
71+ that it depends on the personal setup. As described in more detail at
72+ [ macOS SDK] ( advanced.md#macos-sdk ) ! ROOT is very picky about the compiler
73+ and the connected SDK. Compiling older ROOT versions with newer compilers
74+ may need using an older SDK version. If not specified explicitely the
75+ latest SDK version is used. To use an older SDK version on needs to add the
76+ following parameter when running CMake
77+
78+ ```
79+ -DCMAKE_OSX_SYSROOT=<full path to SDK directory>
80+ ```
81+
82+ e.g. for Apple Clang 17 an macosx 15
83+
84+ ```
85+ -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
86+ ```
87+
88+ More information can be found at
89+
5490** macOS users** : Notice [ macOS SDK] ( advanced.md#macos-sdk ) !
5591
5692### 4. CMake build/install step
0 commit comments