mirror of https://github.com/libAthena/athena.git
CMAKE_OSX_SYSROOT validation
This commit is contained in:
parent
7da7bd751d
commit
a87832e357
|
@ -167,6 +167,9 @@ macro(atdna out)
|
||||||
|
|
||||||
# OSX Extra
|
# OSX Extra
|
||||||
elseif(APPLE)
|
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
|
list(APPEND extraargs -isysroot ${CMAKE_OSX_SYSROOT} -I ${CMAKE_OSX_SYSROOT}/usr/include -isysroot
|
||||||
${CMAKE_OSX_SYSROOT}/../../../../../Toolchains/XcodeDefault.xctoolchain)
|
${CMAKE_OSX_SYSROOT}/../../../../../Toolchains/XcodeDefault.xctoolchain)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue