Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimofey <t.danshin@corp.mail.ru>2016-11-22 19:38:36 +0300
committerTimofey <t.danshin@corp.mail.ru>2016-11-22 19:38:36 +0300
commitc207d60504144ec9ed2a3dfa46068dccb7c29ffd (patch)
tree8058dd5be21ab2d42104f9ae793229d71a89599e /CMakeLists.txt
parent2669462b25baa7af9f27d80904bca22ddf3352b2 (diff)
PR fixes
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d73dc15b1..484181ffe9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -104,8 +104,8 @@ function(omim_add_test_subdirectory subdir)
endif()
endfunction()
-function(omim_link_platform_if_needed target)
- if (";${ARGN};" MATCHES ";platform;")
+function(omim_link_platform_deps target)
+ if ("${ARGN}" MATCHES "platform")
if (PLATFORM_MAC)
target_link_libraries(
${target}
@@ -121,7 +121,7 @@ endfunction()
function(omim_link_libraries target)
if (TARGET ${target})
target_link_libraries(${target} ${ARGN} ${CMAKE_THREAD_LIBS_INIT})
- omim_link_platform_if_needed(${target} ${ARGN})
+ omim_link_platform_deps(${target} ${ARGN})
else()
message("~> Skipping linking the libraries to the target ${target} as it does not exist")
endif()