Hi, If you don’t set this you get 10.5. On any mac with Xcode 6 (7 is the latest) a CMake user will see strange problems if they use CMakeList.txt file that uses a module like Threads or Iconv that compile c++ files as part of their discovery. The message they get will be that package isn’t found and if they look in the error log it’ll stop at something like:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -Wno-deprecated-register -mmacosx-version-min=10.5 -DICONV_COMPILES -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_4d911.dir/src.cxx.o -o cmTC_4d911 /usr/lib/libiconv.dylib ld: library not found for -lgcc_s.10.5 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [cmTC_4d911] Error 1 make: *** [cmTC_4d911/fast] Error 2 Source file was: #include <iconv.h> int main() { iconv(iconv_t(-1), 0, 0, 0, 0); } -lgcc_s.10.5 not found. Not very helpful. That library doesn’t exist on Xcode6 on up (it’s the gcc compiler intrinsics library). There is no gcc here even though apple installs something called /usr/bin/gcc (it is clang). 10.8 might be a better default. - James -- 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: http://public.kitware.com/mailman/listinfo/cmake-developers