@@ -51,6 +51,41 @@ 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 some known problems about the compilation of FairSoft on macosx.
57+
58+ The first two problems are related to the version of the ** patch** and ** make**
59+ commands on macosx.
60+
61+ The ** patch** command does not support the needed parameters,
62+ so one needs ot install a version of the ** patch** command with brew.
63+ The ** make** command doesn't properly support the jobsserver which allows
64+ parallel builds of all the packages contained in FairSoft which slows down
65+ the installation enormously. The version provided by brew fixes the problem.
66+ Both packages are already added in the updated setup script for macosx.
67+ If found the packages from the homebrew installation directory will be used.
68+
69+ The last problem is related to the macosx, compiler and SDK versions, such
70+ that it depends on the personal setup. As described in more detail at
71+ [ macOS SDK] ( advanced.md#macos-sdk ) ! ROOT is very picky about the compiler
72+ and the connected SDK. Compiling older ROOT versions with newer compilers
73+ may need using an older SDK version. If not specified explicitely the
74+ latest SDK version is used. To use an older SDK version on needs to add the
75+ following parameter when running CMake
76+
77+ ```
78+ -DCMAKE_OSX_SYSROOT=<full path to SDK directory>
79+ ```
80+
81+ e.g. for Apple Clang 17 on macosx 15 or Apple Clang 16 on macosx 14
82+
83+ ```
84+ -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
85+ ```
86+
87+ More information can be found at
88+
5489** macOS users** : Notice [ macOS SDK] ( advanced.md#macos-sdk ) !
5590
5691### 4. CMake build/install step
0 commit comments