From: Michael Wallner Date: Thu, 27 Feb 2020 09:34:30 +0000 (+0100) Subject: cmake: fix LDFLAGS for external libs X-Git-Tag: 1.1.0-beta1~250^2~13 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=280b42d4257218abd3f07b8e519c5c555c011e85;p=m6w6%2Flibmemcached cmake: fix LDFLAGS for external libs --- diff --git a/CMake/CheckDependency.cmake b/CMake/CheckDependency.cmake index e1bdd5b9..3cb57535 100644 --- a/CMake/CheckDependency.cmake +++ b/CMake/CheckDependency.cmake @@ -10,8 +10,8 @@ function(check_dependency NAME LIB HEADER) pkg_check_modules(${NAME} ${LIB}${ARGN}) endif() set(${NAME} ${${NAME}_FOUND} PARENT_SCOPE) - set(${NAME}_LIBRARIES ${${NAME}_LIBRARIES} PARENT_SCOPE) - set(${NAME}_INCLUDEDIR ${${NAME}_INCLUDEDIR}} PARENT_SCOPE) + set(${NAME}_LIBRARIES ${${NAME}_LDFLAGS} PARENT_SCOPE) + set(${NAME}_INCLUDEDIR ${${NAME}_INCLUDEDIR} PARENT_SCOPE) safe_string(${LIB} LIB_CONST) set(HAVE_${NAME} ${${NAME}_FOUND} PARENT_SCOPE)