summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hector Martin2010-01-23 22:55:53 +0100
committerGravatar Hector Martin2010-01-24 00:19:34 +0100
commit54ffb743aca10dbc0eef567bcc06ee84b4261f9b (patch)
treed5bd8690b2891bdb4221966f253476e6ccf212c1
parent7ad89bbc51be40403f9a5fd80c4ecad706a204ab (diff)
downloadusbmuxd-54ffb743aca10dbc0eef567bcc06ee84b4261f9b.tar.gz
usbmuxd-54ffb743aca10dbc0eef567bcc06ee84b4261f9b.tar.bz2
Use -Wall globally
-rw-r--r--CMakeLists.txt2
-rw-r--r--daemon/CMakeLists.txt3
-rw-r--r--tools/CMakeLists.txt4
3 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5e8f1c..01dda18 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,8 @@ ENDIF(NOT DEFINED LIB_SUFFIX)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/Modules/")
+add_definitions(-Wall)
+
add_subdirectory (libusbmuxd)
add_subdirectory (daemon)
add_subdirectory (tools)
diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt
index 52e33bc..1ba052c 100644
--- a/daemon/CMakeLists.txt
+++ b/daemon/CMakeLists.txt
@@ -6,7 +6,8 @@ include_directories (${CMAKE_SOURCE_DIR}/common)
include_directories (${CMAKE_SOURCE_DIR}/daemon)
include_directories (${CMAKE_SOURCE_DIR}/libusbmuxd)
-add_definitions(-Wall -O2 -g -DUSBMUXD_DAEMON -DUSBMUXD_VERSION="${USBMUXD_VERSION}")
+add_definitions(-O2 -g)
+add_definitions(-DUSBMUXD_DAEMON -DUSBMUXD_VERSION="${USBMUXD_VERSION}")
add_executable(usbmuxd main.c usb-linux.c log.c ../common/utils.c device.c client.c)
target_link_libraries(usbmuxd ${LIBS})
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 70ec3b3..47ffa90 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -1,8 +1,8 @@
include_directories (${CMAKE_SOURCE_DIR}/libusbmuxd)
link_directories (${CMAKE_BINARY_DIR}/libusbmuxd)
-add_definitions(-Wall -O2 -g)
+add_definitions(-O2 -g)
add_executable(iproxy iproxy.c)
target_link_libraries(iproxy libusbmuxd pthread)
-install(TARGETS iproxy RUNTIME DESTINATION bin) \ No newline at end of file
+install(TARGETS iproxy RUNTIME DESTINATION bin)