diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 22 |
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") | |||
| 13 | message("-- Configuring usbmuxd v${VERSION_TAG}") | 13 | message("-- Configuring usbmuxd v${VERSION_TAG}") |
| 14 | 14 | ||
| 15 | if(NOT DEFINED LIB_SUFFIX) | 15 | if(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() |
| 21 | endif(NOT DEFINED LIB_SUFFIX) | 21 | endif() |
| 22 | |||
| 23 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/Modules/") | ||
| 24 | 22 | ||
| 25 | # let CFLAGS env override this | 23 | # let CFLAGS env override this |
| 26 | if(CMAKE_C_FLAGS STREQUAL "") | 24 | if(CMAKE_C_FLAGS STREQUAL "") |
| 27 | set(CMAKE_C_FLAGS "-O2") | 25 | set(CMAKE_C_FLAGS "-O2") |
| 28 | endif(CMAKE_C_FLAGS STREQUAL "") | 26 | endif() |
| 29 | 27 | ||
| 30 | option(WITH_USBMUXD "Build usbmux daemon (usbmuxd)" ON) | 28 | option(WITH_USBMUXD "Build usbmux daemon (usbmuxd)" ON) |
| 31 | if(WITH_USBMUXD) | 29 | if(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() |
| 41 | endif() | 39 | endif() |
| 42 | 40 | ||
