From 3613728d4333eb3dc9c14e63d63ab3c56ef14038 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 10 Sep 2014 12:04:36 +0200 Subject: [PATCH] Link against shlwapi on Windows. --- FindLinphone.cmake | 3 +++ coreapi/CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/FindLinphone.cmake b/FindLinphone.cmake index 26d07933e..6c6871330 100644 --- a/FindLinphone.cmake +++ b/FindLinphone.cmake @@ -56,6 +56,9 @@ find_library(LINPHONE_LIBRARIES list(APPEND LINPHONE_INCLUDE_DIRS ${ORTP_INCLUDE_DIRS} ${MS2_INCLUDE_DIRS} ${XML2_INCLUDE_DIRS} ${BELLESIP_INCLUDE_DIRS}) list(APPEND LINPHONE_LIBRARIES ${ORTP_LIBRARIES} ${MS2_LIBRARIES} ${XML2_LIBRARIES} ${BELLESIP_LIBRARIES}) +if(WIN32) + list(APPEND LINPHONE_LIBRARIES shlwapi) +endif(WIN32) list(REMOVE_DUPLICATES LINPHONE_INCLUDE_DIRS) list(REMOVE_DUPLICATES LINPHONE_LIBRARIES) diff --git a/coreapi/CMakeLists.txt b/coreapi/CMakeLists.txt index 885305309..df753c11e 100644 --- a/coreapi/CMakeLists.txt +++ b/coreapi/CMakeLists.txt @@ -116,6 +116,9 @@ set(LIBS ${MS2_LIBRARIES} ${XML2_LIBRARIES} ) +if(WIN32) + list(APPEND LIBS shlwapi) +endif() if(ENABLE_STATIC) add_library(linphone STATIC ${SOURCE_FILES} ${GENERATED_SOURCE_FILES})