• Brad King's avatar
    OS X: Enable command-line build without tools in PATH · 03ab170f
    Brad King authored
    Teach modules CMakeDetermineCompiler and CMakeUnixFindMake to ask Xcode
    where to find the compiler or make tools, using 'xcrun --find', if none
    is found in the PATH.  Teach module Platform/Darwin to add the path to
    the SDK to CMAKE_SYSTEM_PREFIX_PATH so that find_* command look there.
    Also add the SDK /usr/include directory to the implicit include list in
    CMAKE_${lang}_IMPLICIT_INCLUDE_DIRECTORIES to suppress explicit -I
    options for it.
    03ab170f
CMakeUnixFindMake.cmake 1.02 KB