From d54bf6f008e90686b2bc1b38b8d93f0ff4a770e7 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sun, 11 Apr 2010 17:15:54 +0200 Subject: Unify CMakeLists indentation and endif() stuff --- CMakeLists.txt | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7dbeec1..8eccd2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,19 +13,17 @@ set(LIBUSBMUXD_SOVERSION "1") message("-- Configuring usbmuxd v${VERSION_TAG}") if(NOT DEFINED LIB_SUFFIX) - if(CMAKE_SIZEOF_VOID_P EQUAL 8) - set(LIB_SUFFIX "64" CACHE STRING "Define suffix of library directory name (32/64)" ) - else(CMAKE_SIZEOF_VOID_P EQUAL 8) - set(LIB_SUFFIX "" CACHE STRING "Define suffix of library directory name (32/64)" ) - endif(CMAKE_SIZEOF_VOID_P EQUAL 8) -endif(NOT DEFINED LIB_SUFFIX) - -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/Modules/") + if(CMAKE_SIZEOF_VOID_P EQUAL 8) + set(LIB_SUFFIX "64" CACHE STRING "Define suffix of library directory name (32/64)" ) + else() + set(LIB_SUFFIX "" CACHE STRING "Define suffix of library directory name (32/64)" ) + endif() +endif() # let CFLAGS env override this if(CMAKE_C_FLAGS STREQUAL "") - set(CMAKE_C_FLAGS "-O2") -endif(CMAKE_C_FLAGS STREQUAL "") + set(CMAKE_C_FLAGS "-O2") +endif() option(WITH_USBMUXD "Build usbmux daemon (usbmuxd)" ON) if(WITH_USBMUXD) @@ -34,9 +32,9 @@ else() message("-- Will build usbmuxd: NO") message("** NOTE: will NOT build usbmuxd **") if(WIN32 OR APPLE) - message("** Make sure iTunes is installed, otherwise this software will not work! **") + message("** Make sure iTunes is installed, otherwise this software will not work! **") else() - message("** You'll need a working usbmuxd implementation for this software to work! **") + message("** You'll need a working usbmuxd implementation for this software to work! **") endif() endif() -- cgit v1.1-32-gdbae