cmake elif() -> elseif()

This commit is contained in:
godisgovernment 2012-03-26 03:27:18 +00:00
parent c82d88302a
commit d5ae3e90a8
1 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ if(UNIX AND NOT APPLE)
endif(VISIBILITY_HIDDEN)
endif()
if (APPLE)
if(APPLE)
# Ignore MacPorts and Fink and any other locally installed packages that
# might prevent building a distributable binary.
set(CMAKE_SYSTEM_PREFIX_PATH /usr)
@ -148,12 +148,12 @@ if (APPLE)
set(TARGET_FLAGS "${TARGET_FLAGS} -mmacosx-version-min=${OSX_MIN_VERSION}")
set(SYSROOT_LEGACY_PATH "/Developer/SDKs/MacOSX10.6.sdk")
set(SYSROOT_PATH "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk")
if (EXISTS "${SYSROOT_PATH}/")
if(EXISTS "${SYSROOT_PATH}/")
set(TARGET_SYSROOT ${SYSROOT_PATH})
elif (EXISTS "${SYSROOT_LEGACY_PATH}/")
elseif(EXISTS "${SYSROOT_LEGACY_PATH}/")
set(TARGET_SYSROOT ${SYSROOT_LEGACY_PATH})
endif()
if (${TARGET_SYSROOT})
if(${TARGET_SYSROOT})
set(TARGET_FLAGS "${TARGET_FLAGS} -isysroot ${TARGET_SYSROOT}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-syslibroot,${TARGET_SYSROOT}")
endif()