<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Justin,</div><div class="">how about an even simpler solution:  Using “/“ as the SDK root when `xcrun` returns an empty string:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Index: CMakeLists.txt</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">===================================================================</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">--- CMakeLists.txt<span class="Apple-tab-span" style="white-space:pre">       </span>(revision 228816)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">+++ CMakeLists.txt<span class="Apple-tab-span" style="white-space:pre">   </span>(working copy)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">@@ -295,6 +295,9 @@</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">   string(REGEX MATCH "-mmacosx-version-min="</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">          MACOSX_VERSION_MIN_FLAG "${CMAKE_CXX_FLAGS}")</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">   set(SANITIZER_COMMON_SUPPORTED_DARWIN_OS osx)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">+  if (NOT OSX_SDK_DIR) # Probably a Command Line Tools setup</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">+    set(OSX_SDK_DIR "/")</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">+  endif()</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">   if (IOSSIM_SDK_DIR AND NOT MACOSX_VERSION_MIN_FLAG)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">     list(APPEND SANITIZER_COMMON_SUPPORTED_DARWIN_OS iossim)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">   endif()</div></div><div class=""><br class=""></div><div class="">Will this work?  Can you test this for me?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Kuba</div><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 3, 2015, at 10:17 PM, Justin Bogner <<a href="mailto:mail@justinbogner.com" class="">mail@justinbogner.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Kuba Brecka <<a href="mailto:kuba.brecka@gmail.com" class="">kuba.brecka@gmail.com</a>> writes:<br class=""><blockquote type="cite" class="">But the Command Line Tools do contain the SDK, right? What is the<br class="">command to get the path to it then?<br class=""></blockquote><br class="">I think the simplest thing to do is to not provide a -isysroot if we<br class="">don't find an SDK for OSX. On a system without Xcode an empty string is<br class="">returned from `xcrun --sdk macosx --show-sdk-path`, whereas on a system<br class="">with Xcode the result matches `xcodebuild -version -sdk macosx Path`.<br class=""></div></blockquote></div><br class=""></body></html>