From 688580c7d25b653bdff755604b3380ad3d771ac0 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Sun, 19 May 2013 11:21:24 -0400 Subject: [PATCH] CMake: don't compile semistatic by default Exclude semistatic targets from the 'all' target. --- libowlps-resultreader/CMakeLists.txt | 3 ++- owlps-aggregator/CMakeLists.txt | 3 ++- owlps-client/CMakeLists.txt | 3 ++- owlps-listener/CMakeLists.txt | 3 ++- owlps-udp-to-http/CMakeLists.txt | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libowlps-resultreader/CMakeLists.txt b/libowlps-resultreader/CMakeLists.txt index b66ccaa..dedaee8 100644 --- a/libowlps-resultreader/CMakeLists.txt +++ b/libowlps-resultreader/CMakeLists.txt @@ -9,7 +9,8 @@ target_link_libraries(owlps-resultreader-udp libowlps.so libowlps-resultreader.so) -add_executable(owlps-resultreader-udp.semistatic owlps-resultreader-udp.c) +add_executable(owlps-resultreader-udp.semistatic EXCLUDE_FROM_ALL + owlps-resultreader-udp.c) target_link_libraries(owlps-resultreader-udp.semistatic libowlps.a libowlps-resultreader.a) diff --git a/owlps-aggregator/CMakeLists.txt b/owlps-aggregator/CMakeLists.txt index de49f2b..7acc686 100644 --- a/owlps-aggregator/CMakeLists.txt +++ b/owlps-aggregator/CMakeLists.txt @@ -5,7 +5,8 @@ target_link_libraries(owlps-aggregatord libowlps.so ${EXTRA_LIBS}) -add_executable(owlps-aggregatord.semistatic owlps-aggregatord.c) +add_executable(owlps-aggregatord.semistatic EXCLUDE_FROM_ALL + owlps-aggregatord.c) target_link_libraries(owlps-aggregatord.semistatic libowlps.a ${EXTRA_LIBS}) diff --git a/owlps-client/CMakeLists.txt b/owlps-client/CMakeLists.txt index b729617..e6d667f 100644 --- a/owlps-client/CMakeLists.txt +++ b/owlps-client/CMakeLists.txt @@ -20,7 +20,8 @@ if (OWLPS_CLIENT_RECEIVES_POSITION) libowlps-resultreader.so) endif() -add_executable(owlps-client.semistatic owlps-client.c) +add_executable(owlps-client.semistatic EXCLUDE_FROM_ALL + owlps-client.c) target_link_libraries(owlps-client.semistatic libowlps.a libowlps-client.a) diff --git a/owlps-listener/CMakeLists.txt b/owlps-listener/CMakeLists.txt index b849cde..f114858 100644 --- a/owlps-listener/CMakeLists.txt +++ b/owlps-listener/CMakeLists.txt @@ -38,7 +38,8 @@ target_link_libraries(owlps-listenerd libowlps-client.so ${EXTRA_LIBS}) -add_executable(owlps-listenerd.semistatic owlps-listenerd.c) +add_executable(owlps-listenerd.semistatic EXCLUDE_FROM_ALL + owlps-listenerd.c) target_link_libraries(owlps-listenerd.semistatic libowlps.a libowlps-client.a diff --git a/owlps-udp-to-http/CMakeLists.txt b/owlps-udp-to-http/CMakeLists.txt index 8cb3857..0be0011 100644 --- a/owlps-udp-to-http/CMakeLists.txt +++ b/owlps-udp-to-http/CMakeLists.txt @@ -6,7 +6,8 @@ target_link_libraries(owlps-udp-to-http libowlps-resultreader.so ${EXTRA_LIBS}) -add_executable(owlps-udp-to-http.semistatic owlps-udp-to-http.c) +add_executable(owlps-udp-to-http.semistatic EXCLUDE_FROM_ALL + owlps-udp-to-http.c) target_link_libraries(owlps-udp-to-http.semistatic libowlps.a libowlps-resultreader.a