aboutsummaryrefslogtreecommitdiffstats
path: root/lib/decoding
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2018-03-04 19:36:24 +0100
committerPiotr Krysik <ptrkrysik@gmail.com>2018-03-04 19:36:24 +0100
commit1a5e87ea1a80f26873c25c3f7866867c32d8d42c (patch)
treeddb56c0524bca3e4f1dca3bfda7bcffaac70941e /lib/decoding
parentd8a576618deb943b795ff5e283040054626f8042 (diff)
Conditional compilation of local libosmocore depending if there is or is not libosmocore installation present on the system
Diffstat (limited to 'lib/decoding')
-rw-r--r--lib/decoding/CMakeLists.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/decoding/CMakeLists.txt b/lib/decoding/CMakeLists.txt
index cbf2a8e..bb5ddde 100644
--- a/lib/decoding/CMakeLists.txt
+++ b/lib/decoding/CMakeLists.txt
@@ -17,11 +17,16 @@
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-add_subdirectory(osmocom/coding)
-add_subdirectory(osmocom/core)
-add_subdirectory(osmocom/codec)
-add_subdirectory(osmocom/gsm)
-add_subdirectory(osmocom/crypt)
+if(NOT LIBOSMOCORE_FOUND OR NOT LIBOSMOCODEC_FOUND)
+ message(STATUS "Libosmocore installation not found - compiling local version")
+ add_subdirectory(osmocom/core)
+ add_subdirectory(osmocom/codec)
+ add_subdirectory(osmocom/gsm)
+elseif(NOT LIBOSMOCODING_FOUND)
+ message(STATUS "Libosmocore found but libosmocoding is missing - compiling local version")
+ add_subdirectory(osmocom/coding)
+endif()
+
add_subdirectory(openbts)
add_sources(