CMAKE_OSX_SYSROOT validation

This commit is contained in:
Jack Andersen 2016-01-08 16:00:08 -10:00
parent 7da7bd751d
commit a87832e357
1 changed files with 3 additions and 0 deletions

View File

@ -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()