From 47a2c1c0bfb6dac299d80cebabf18faa00c5b516 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 30 Mar 2015 11:37:37 +0200 Subject: [PATCH] Add "lib" prefix for the DLL name when building for Windows Phone with CMake. --- coreapi/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coreapi/CMakeLists.txt b/coreapi/CMakeLists.txt index 68cc280b1..73fa16fb9 100644 --- a/coreapi/CMakeLists.txt +++ b/coreapi/CMakeLists.txt @@ -162,6 +162,9 @@ else() endif() endif() endif() +if(WIN32 AND "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsPhone") + set_target_properties(linphone PROPERTIES PREFIX "lib") +endif() if(ICONV_FOUND) target_include_directories(linphone PUBLIC ${ICONV_INCLUDE_DIRS}) endif()