summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hector Martin2010-04-11 17:15:54 +0200
committerGravatar Hector Martin2010-04-11 17:18:53 +0200
commitd54bf6f008e90686b2bc1b38b8d93f0ff4a770e7 (patch)
tree0732a76458083261e55225a42e7ecb24da86f798
parent3066c08a0db54729af639e128b4e9fe4fdc8c008 (diff)
downloadusbmuxd-d54bf6f008e90686b2bc1b38b8d93f0ff4a770e7.tar.gz
usbmuxd-d54bf6f008e90686b2bc1b38b8d93f0ff4a770e7.tar.bz2
Unify CMakeLists indentation and endif() stuff
-rw-r--r--CMakeLists.txt22
1 files 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()