At MacOS, in 99% cases, the build task always needs to setup the variables - CMAKE_OSX_TARGET - CMAKE_OSX_DEPLOYMENT_TARGET
This 2 variables are important. The CMAKE_OSX_TARGET would define the minimal set of API during compilation, and this affects the built binary. The second is the path to the OSX SDK, usually it stays in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs . Since SDK changes file and directory structure according the language feature, this is important to the program which has to use C++11 or C++14 or new header files. Personally I only use 10.9 SDK, which is the first version migrated to C++11, and SDK changed a lot compared to 10.8, and the program is compatible with the later system. On Thu, Nov 15, 2018 at 3:42 AM Steven Stallion <sstall...@gmail.com> wrote: > On Wed, Nov 14, 2018 at 10:54 AM Sean McBride <s...@rogue-research.com> > wrote: > > > I see. Well, I just checked my macOS 10.14.1 / Xcode 10.1 bot > "RogueResearch12" and indeed it does not have a /usr/include folder. It is > however able to build CMake, VTK, and ITK nightly without any compiler > errors. > > > > Perhaps it's not so much a CMake bug as a bug in the project you're > trying to build? > > Interesting. I'll take another look - I wonder if it's a bad > interaction from calling clang from a custom command. > > Thanks for taking a look! > Steve > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake