From d5ae3e90a82e9a251de02d6cc72e7fb4589b551a Mon Sep 17 00:00:00 2001 From: godisgovernment Date: Mon, 26 Mar 2012 03:27:18 +0000 Subject: [PATCH] cmake elif() -> elseif() --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fe40c84e02..ba148a6762 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()