Hi ITK teams,
We get an issue once using ITK (5.2.1) through brew and macOs and obtain this type of error related to cmath use:
Applications/Xcode_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:321:9: error: no member named ‘signbit’ in the global namespace
Hi Pablo!
Thanks for your suggestions. Yes probably since when using the command line tools SDK it compiles, I tried to edit the formula and adding an cmake option: -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
but I get compilations errors on itkv3p_netlib (while it works from full manual installation from source from default).
A possible workaround to successfully compile without using Xcode-select is just to add an cmake option: set(CMAKE_OSX_SYSROOT “/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk”)
That looks to be fine and do not change the user global config: