From 9388fd6d4364d0827e48d955185565a6edbcee95 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 9 Oct 2015 13:53:33 +0200 Subject: [PATCH] Allow inclusion of tunnel CMake project in a global CMake project. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27f4cd87f..c898f06e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,7 +110,11 @@ if(ENABLE_UNIT_TESTS) endif() endif() if(ENABLE_TUNNEL) - find_package(Tunnel) + if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS) + include("${EP_tunnel_CONFIG_DIR}/TunnelConfig.cmake") + else() + find_package(Tunnel) + endif() if(NOT TUNNEL_FOUND) message(WARNING "Could not find the tunnel library!") set(ENABLE_TUNNEL OFF CACHE BOOL "Enable tunnel support." FORCE)