A minor error in /Libraries/simpleFunctionObjects/functionObjectProxy/executeIfExecutableFitsFunctionObject/executeIfExecutableFitsFunctionObject.C
The compiler macro darwin
is not working in macOS (I'm using 10.15 Catalina) and the code can't be compiled. __APPLE__
is the standard one.
The fixes are (I have tested)
#ifdef __APPLE__
#include "mach-o/dyld.h"
#endif
and
#ifdef __APPLE__
{
char path[1024];
uint32_t size = sizeof(path);
if (_NSGetExecutablePath(path, &size) == 0) {
exePath=string(path);
}
}