From a87832e357795ed84de9cb65d007c2d6c2b93d54 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 8 Jan 2016 16:00:08 -1000 Subject: [PATCH] CMAKE_OSX_SYSROOT validation --- atdna/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atdna/CMakeLists.txt b/atdna/CMakeLists.txt index 2cd3545..1ac279c 100644 --- a/atdna/CMakeLists.txt +++ b/atdna/CMakeLists.txt @@ -167,6 +167,9 @@ macro(atdna out) # OSX Extra elseif(APPLE) + if (NOT EXISTS "${CMAKE_OSX_SYSROOT}") + message(FATAL_ERROR "CMAKE_OSX_SYSROOT not set") + endif() list(APPEND extraargs -isysroot ${CMAKE_OSX_SYSROOT} -I ${CMAKE_OSX_SYSROOT}/usr/include -isysroot ${CMAKE_OSX_SYSROOT}/../../../../../Toolchains/XcodeDefault.xctoolchain) endif()