From 7548caa721d85bb79d7713de5fb904d7a3b9ee70 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 25 May 2023 18:15:57 +0200 Subject: [PATCH] Reflect changes made to some CMake targets names in linphone-sdk. --- linphone-app/cmake/FindLinphone.cmake | 6 +++--- linphone-app/cmake/FindLinphoneCxx.cmake | 6 +++--- linphone-app/cmake/FindMediastreamer2.cmake | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/linphone-app/cmake/FindLinphone.cmake b/linphone-app/cmake/FindLinphone.cmake index 31fbbb52c..ecaa95a59 100644 --- a/linphone-app/cmake/FindLinphone.cmake +++ b/linphone-app/cmake/FindLinphone.cmake @@ -26,10 +26,10 @@ # LINPHONE_INCLUDE_DIRS - the linphone include directory # LINPHONE_LIBRARIES - The library needed to use linphone -if(TARGET linphone) +if(TARGET liblinphone) - set(LINPHONE_LIBRARIES linphone) - get_target_property(LINPHONE_INCLUDE_DIRS linphone INTERFACE_INCLUDE_DIRECTORIES) + set(LINPHONE_LIBRARIES liblinphone) + get_target_property(LINPHONE_INCLUDE_DIRS liblinphone INTERFACE_INCLUDE_DIRECTORIES) include(FindPackageHandleStandardArgs) diff --git a/linphone-app/cmake/FindLinphoneCxx.cmake b/linphone-app/cmake/FindLinphoneCxx.cmake index 99dacce40..3925915a1 100644 --- a/linphone-app/cmake/FindLinphoneCxx.cmake +++ b/linphone-app/cmake/FindLinphoneCxx.cmake @@ -26,10 +26,10 @@ # LINPHONECXX_INCLUDE_DIRS - the linphonecxx include directory # LINPHONECXX_LIBRARIES - The library needed to use linphonecxx -if(TARGET linphone++) +if(TARGET liblinphone++) - set(LINPHONECXX_LIBRARIES linphone++) - get_target_property(LINPHONECXX_INCLUDE_DIRS linphone++ INTERFACE_INCLUDE_DIRECTORIES) + set(LINPHONECXX_LIBRARIES liblinphone++) + get_target_property(LINPHONECXX_INCLUDE_DIRS liblinphone++ INTERFACE_INCLUDE_DIRECTORIES) include(FindPackageHandleStandardArgs) diff --git a/linphone-app/cmake/FindMediastreamer2.cmake b/linphone-app/cmake/FindMediastreamer2.cmake index 60ed381ec..64ac8f284 100644 --- a/linphone-app/cmake/FindMediastreamer2.cmake +++ b/linphone-app/cmake/FindMediastreamer2.cmake @@ -27,12 +27,12 @@ # MEDIASTREAMER2_LIBRARIES - The library needed to use mediasteamer2 # MEDIASTREAMER2_PLUGINS_LOCATION - The location of the mediastreamer2 plugins -if(TARGET mediastreamer) +if(TARGET mediastreamer2) - set(MEDIASTREAMER2_LIBRARIES mediastreamer) - get_target_property(MEDIASTREAMER2_INCLUDE_DIRS mediastreamer INTERFACE_INCLUDE_DIRECTORIES) + set(MEDIASTREAMER2_LIBRARIES mediastreamer2) + get_target_property(MEDIASTREAMER2_INCLUDE_DIRS mediastreamer2 INTERFACE_INCLUDE_DIRECTORIES) define_property(TARGET PROPERTY "MS2_PLUGINS" BRIEF_DOCS "Stores the location of mediastreamer2 plugins" FULL_DOCS "Stores the location of mediastreamer2 plugins") - get_target_property(MEDIASTREAMER2_PLUGINS_LOCATION mediastreamer MS2_PLUGINS) + get_target_property(MEDIASTREAMER2_PLUGINS_LOCATION mediastreamer2 MS2_PLUGINS) include(FindPackageHandleStandardArgs)