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)