Hi Weller, do you mean just doing:
cmake -S … -B . -
then
make
Instead when I do
rm -rf build
mkdir build
cd build
cmake -S … -B .
then
(base) edwardtaylor@Edwards-MacBook-Pro build % make
[ 14%] Building CXX object CMakeFiles/geotest.dir/geotest.cc.o
In file included from /Users/edwardtaylor/Documents/PhD/Geant4/examples/extended/persistency/gdml/G02/geotest.cc:39:
In file included from /usr/local/include/Geant4/G4RunManagerFactory.hh:37:
In file included from /usr/local/include/Geant4/G4Types.hh:74:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/complex:237:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:321:9: error: no member named ‘signbit’ in the global namespace
using ::signbit;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:322:9: error: no member named ‘fpclassify’ in the global namespace
using ::fpclassify;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:323:9: error: no member named ‘isfinite’ in the global namespace; did you mean ‘finite’?
using ::isfinite;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/math.h:752:12: note: ‘finite’ declared here
extern int finite(double)
^
In file included from /Users/edwardtaylor/Documents/PhD/Geant4/examples/extended/persistency/gdml/G02/geotest.cc:39:
In file included from /usr/local/include/Geant4/G4RunManagerFactory.hh:37:
In file included from /usr/local/include/Geant4/G4Types.hh:74:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/complex:237:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:324:9: error: no member named ‘isinf’ in the global namespace
using ::isinf;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:325:9: error: no member named ‘isnan’ in the global namespace
using ::isnan;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:326:9: error: no member named ‘isnormal’ in the global namespace
using ::isnormal;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:327:9: error: no member named ‘isgreater’ in the global namespace
using ::isgreater;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:328:9: error: no member named ‘isgreaterequal’ in the global namespace
using ::isgreaterequal;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:329:9: error: no member named ‘isless’ in the global namespace
using ::isless;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:330:9: error: no member named ‘islessequal’ in the global namespace
using ::islessequal;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:331:9: error: no member named ‘islessgreater’ in the global namespace
using ::islessgreater;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:332:9: error: no member named ‘isunordered’ in the global namespace
using ::isunordered;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:333:9: error: no member named ‘isunordered’ in the global namespace
using ::isunordered;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:644:26: error: no template named ‘numeric_limits’
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:644:60: error: no template named ‘numeric_limits’
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:645:18: error: no template named ‘numeric_limits’
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:645:50: error: no template named ‘numeric_limits’
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:650:17: error: no template named ‘numeric_limits’
static_assert(numeric_limits<_FloatT>::radix == 2, “FloatT has incorrect radix”);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:653:25: error: no template named ‘numeric_limits’
return _FloatBigger ? numeric_limits<_IntT>::max() : (numeric_limits<_IntT>::max() >> _Bits << _Bits);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/geotest.dir/geotest.cc.o] Error 1
make[1]: *** [CMakeFiles/geotest.dir/all] Error 2
make: *** [all] Error 2
Which was the issue with 12.0 sdk on Mac - which is the same as Mac OS X building bug - #3 by Adiolph