summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
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 /CMakeLists.txt
parent3066c08a0db54729af639e128b4e9fe4fdc8c008 (diff)
downloadusbmuxd-d54bf6f008e90686b2bc1b38b8d93f0ff4a770e7.tar.gz
usbmuxd-d54bf6f008e90686b2bc1b38b8d93f0ff4a770e7.tar.bz2
Unify CMakeLists indentation and endif() stuff
Diffstat (limited to 'CMakeLists.txt')
-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")
13message("-- Configuring usbmuxd v${VERSION_TAG}") 13message("-- Configuring usbmuxd v${VERSION_TAG}")
14 14
15if(NOT DEFINED LIB_SUFFIX) 15if(NOT DEFINED LIB_SUFFIX)
16 if(CMAKE_SIZEOF_VOID_P EQUAL 8) 16 if(CMAKE_SIZEOF_VOID_P EQUAL 8)
17 set(LIB_SUFFIX "64" CACHE STRING "Define suffix of library directory name (32/64)" ) 17 set(LIB_SUFFIX "64" CACHE STRING "Define suffix of library directory name (32/64)" )
18 else(CMAKE_SIZEOF_VOID_P EQUAL 8) 18 else()
19 set(LIB_SUFFIX "" CACHE STRING "Define suffix of library directory name (32/64)" ) 19 set(LIB_SUFFIX "" CACHE STRING "Define suffix of library directory name (32/64)" )
20 endif(CMAKE_SIZEOF_VOID_P EQUAL 8) 20 endif()
21endif(NOT DEFINED LIB_SUFFIX) 21endif()
22
23set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/Modules/")
24 22
25# let CFLAGS env override this 23# let CFLAGS env override this
26if(CMAKE_C_FLAGS STREQUAL "") 24if(CMAKE_C_FLAGS STREQUAL "")
27 set(CMAKE_C_FLAGS "-O2") 25 set(CMAKE_C_FLAGS "-O2")
28endif(CMAKE_C_FLAGS STREQUAL "") 26endif()
29 27
30option(WITH_USBMUXD "Build usbmux daemon (usbmuxd)" ON) 28option(WITH_USBMUXD "Build usbmux daemon (usbmuxd)" ON)
31if(WITH_USBMUXD) 29if(WITH_USBMUXD)
@@ -34,9 +32,9 @@ else()
34 message("-- Will build usbmuxd: NO") 32 message("-- Will build usbmuxd: NO")
35 message("** NOTE: will NOT build usbmuxd **") 33 message("** NOTE: will NOT build usbmuxd **")
36 if(WIN32 OR APPLE) 34 if(WIN32 OR APPLE)
37 message("** Make sure iTunes is installed, otherwise this software will not work! **") 35 message("** Make sure iTunes is installed, otherwise this software will not work! **")
38 else() 36 else()
39 message("** You'll need a working usbmuxd implementation for this software to work! **") 37 message("** You'll need a working usbmuxd implementation for this software to work! **")
40 endif() 38 endif()
41endif() 39endif()
42 40