With Xcode 12.2, the message below is sent out after configuring the CMake GUI. The log file ‘OpenSceneGraph_build.log’ shows the compiler error due to the missing header files (stdio.h, unistd.h, sys/time.h, stdlib.h, string.h).
macOS 10.15.7, Xcode 12.2, CMake 3.18.4
Rebuilt it after upgrading from Xcode 11.3.1 to Xcode 12.2.
Yes, I did 'xcode-select --install'
OK after upgrading XCode or MacOS, it’s generally advisable to delete the entire CMake build directory and dependencies of GMAT and start from scratch.
Delete all GMAT dependency folders inside <gmat>/depends. Keep only CMakeModules, configure.py, CMakeLists.txt.
Delete your GMAT CMake build folder: <gmat>/Cocoa-build/ (or something similar)
Delete all OFI dependency folders inside <OFI>/depends. Keep only CMakeLists.txt.
Then follow the GMAT CMake build instructions from scratch:
Ok. <gmat> is fresh-out in the other location so I don’t think it is necessary to delete those depends/* at this time. OFI was still exisiting from Xcode 11.3.1 which caused the problem. I am going to try #3 first instead to see what’s happening.
It worked after deleting the folders except for the file ‘CMakeLists.txt’ located in <OFI>/depends. In the future, it would probably need to follow up with those #1 - #3 in case.
Fixed per Joey's comment.