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})