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)