summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()