From c66a00ff242c74b03c23fe7ef2c52d8c8f59b275 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 7 Apr 2015 16:14:25 +0200 Subject: [PATCH] Do not try to search for libgcc and libmingwex when building for Windows Phone. --- coreapi/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/coreapi/CMakeLists.txt b/coreapi/CMakeLists.txt index ec2123a62..f2fe192bc 100644 --- a/coreapi/CMakeLists.txt +++ b/coreapi/CMakeLists.txt @@ -20,7 +20,7 @@ # ############################################################################ -if(MSVC) +if(MSVC AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsPhone") find_library(LIBGCC NAMES gcc) find_library(LIBMINGWEX NAMES mingwex) endif() @@ -121,8 +121,6 @@ add_definitions( ) set(LIBS - ${LIBGCC} - ${LIBMINGWEX} ${BELLESIP_LIBRARIES} ${MEDIASTREAMER2_LIBRARIES} ${XML2_LIBRARIES} @@ -142,6 +140,9 @@ endif() if(ENABLE_ASSISTANT) list(APPEND LIBS ${SOUP_LIBRARIES}) endif() +if(MSVC AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsPhone") + list(APPEND LIBS ${LIBGCC} ${LIBMINGWEX}) +endif() if(WIN32 AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsPhone") list(APPEND LIBS shlwapi) endif()