Homebrew installation stopped working for me around the time macOS Ventura was released. This seems to be a problem related to macOS SDK versions/paths not being properly passed to CMake. Homebrew provides (through its std_cmake_args) the top-level CMake with, for example, -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk. This option is not passed through to the sub-projects since the passed-through arguments are manually specified in CMakeLists.txt:
The cleanest solution seems to be to set CMAKE_OSX_SYSROOT using the SDKROOT environment variable, which will be picked up by all the sub-CMakes and should be equivalent.
This should fix the latest problem brought up in #108.
Please consider merging this PR as soon as possible. This SDK path problem is preventing the installation of openEMS on many macOS systems after upgrading to macOS 13.
Homebrew installation stopped working for me around the time macOS Ventura was released. This seems to be a problem related to macOS SDK versions/paths not being properly passed to CMake. Homebrew provides (through its
std_cmake_args
) the top-level CMake with, for example,-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
. This option is not passed through to the sub-projects since the passed-through arguments are manually specified inCMakeLists.txt
:The cleanest solution seems to be to set
CMAKE_OSX_SYSROOT
using theSDKROOT
environment variable, which will be picked up by all the sub-CMakes and should be equivalent.This should fix the latest problem brought up in #108.