From 23ca3023046db75fffebde28975ca5973c97c641 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 7 Oct 2015 15:17:10 +0200 Subject: [PATCH] Do not include LinphoneTargets.cmake when grouping external source path builders. --- cmake/LinphoneConfig.cmake.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/LinphoneConfig.cmake.in b/cmake/LinphoneConfig.cmake.in index d7aa6cc22..b29fe8836 100644 --- a/cmake/LinphoneConfig.cmake.in +++ b/cmake/LinphoneConfig.cmake.in @@ -29,7 +29,10 @@ # LINPHONE_CPPFLAGS - The compilation flags needed to use linphone # LINPHONE_LDFLAGS - The linking flags needed to use linphone -include("${CMAKE_CURRENT_LIST_DIR}/LinphoneTargets.cmake") +if(NOT LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS) + include("${CMAKE_CURRENT_LIST_DIR}/LinphoneTargets.cmake") +endif() + find_package(Mediastreamer2 REQUIRED) find_package(BelleSIP REQUIRED) if(@ENABLE_TUNNEL@)