diff options
| author | 2010-02-07 01:59:03 +0100 | |
|---|---|---|
| committer | 2010-02-07 02:00:31 +0100 | |
| commit | c9db7c05573bee6e819ae76095e0d80f5fe02dd4 (patch) | |
| tree | 2ee4c78140ca4ac53e7aaf1fd760979338c79df9 /libusbmuxd | |
| parent | 003e72659b579e4376d099767f2e757e80d8f2a4 (diff) | |
| download | usbmuxd-c9db7c05573bee6e819ae76095e0d80f5fe02dd4.tar.gz usbmuxd-c9db7c05573bee6e819ae76095e0d80f5fe02dd4.tar.bz2 | |
Clean up CMakeLists (inspired by Gentoo patch)
Diffstat (limited to 'libusbmuxd')
| -rw-r--r-- | libusbmuxd/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libusbmuxd/CMakeLists.txt b/libusbmuxd/CMakeLists.txt index d062f23..d275169 100644 --- a/libusbmuxd/CMakeLists.txt +++ b/libusbmuxd/CMakeLists.txt | |||
| @@ -1,8 +1,10 @@ | |||
| 1 | include_directories (${CMAKE_SOURCE_DIR}/common) | 1 | include_directories (${CMAKE_SOURCE_DIR}/common) |
| 2 | find_package(Threads) | ||
| 2 | 3 | ||
| 3 | add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ../common/utils.c) | 4 | add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ${CMAKE_SOURCE_DIR}/common/utils.c) |
| 4 | find_library (PTHREAD pthread) | 5 | find_library (PTHREAD pthread) |
| 5 | target_link_libraries (libusbmuxd ${PTHREAD}) | 6 | target_link_libraries (libusbmuxd ${CMAKE_THREAD_LIBS_INIT}) |
| 7 | |||
| 6 | # 'lib' is a UNIXism, the proper CMake target is usbmuxd | 8 | # 'lib' is a UNIXism, the proper CMake target is usbmuxd |
| 7 | # But we can't use that due to the conflict with the usbmuxd daemon, | 9 | # But we can't use that due to the conflict with the usbmuxd daemon, |
| 8 | # so instead change the library output base name to usbmuxd here | 10 | # so instead change the library output base name to usbmuxd here |
