From d2f18860830e44d2b3e3cde387802f1481080ab0 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 3 Sep 2014 12:51:23 +0200 Subject: [PATCH] Add LINPHONE_LDFLAGS in CMake script to find linphone. --- FindLinphone.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/FindLinphone.cmake b/FindLinphone.cmake index fdb582c72..1cf317c03 100644 --- a/FindLinphone.cmake +++ b/FindLinphone.cmake @@ -26,6 +26,7 @@ # LINPHONE_INCLUDE_DIRS - the linphone include directory # LINPHONE_LIBRARIES - The libraries needed to use linphone # LINPHONE_CPPFLAGS - The compilation flags needed to use linphone +# LINPHONE_LDFLAGS - The linking flags needed to use linphone find_package(ORTP REQUIRED) find_package(MS2 REQUIRED) @@ -58,12 +59,13 @@ list(APPEND LINPHONE_LIBRARIES ${ORTP_LIBRARIES} ${MS2_LIBRARIES} ${XML2_LIBRARI list(REMOVE_DUPLICATES LINPHONE_INCLUDE_DIRS) list(REMOVE_DUPLICATES LINPHONE_LIBRARIES) -set(LINPHONE_CPPFLAGS ${MS2_CPPFLAGS}) +set(LINPHONE_CPPFLAGS "${MS2_CPPFLAGS}") +set(LINPHONE_LDFLAGS "${MS2_LDFLAGS}") include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Linphone DEFAULT_MSG - LINPHONE_INCLUDE_DIRS LINPHONE_LIBRARIES LINPHONE_CPPFLAGS + LINPHONE_INCLUDE_DIRS LINPHONE_LIBRARIES ) -mark_as_advanced(LINPHONE_INCLUDE_DIRS LINPHONE_LIBRARIES LINPHONE_CPPFLAGS) +mark_as_advanced(LINPHONE_INCLUDE_DIRS LINPHONE_LIBRARIES LINPHONE_CPPFLAGS LINPHONE_LDFLAGS)