summaryrefslogtreecommitdiffstats
path: root/Modules/FindPkgConfig.cmake
diff options
context:
space:
mode:
authorFlorent Castelli <florent.castelli@gmail.com>2016-11-04 22:35:27 (GMT)
committerFlorent Castelli <florent.castelli@gmail.com>2016-11-04 22:35:27 (GMT)
commit61898de64180ce8123219f5e6450cb8375840045 (patch)
tree4fcb7fef1aaf29f1711360e183125564380c83f3 /Modules/FindPkgConfig.cmake
parentadf5f253ec029aec4ee7aadb95c6f908030fb98b (diff)
downloadCMake-61898de64180ce8123219f5e6450cb8375840045.zip
CMake-61898de64180ce8123219f5e6450cb8375840045.tar.gz
CMake-61898de64180ce8123219f5e6450cb8375840045.tar.bz2
PkgConfig: Fix FindPkgConfig imported target feature
The options to the find_library call to create the imported target used a literal string "HINTS /path NO_DEFAULT_PATH" instead of a list of options. This resulted in never finding any library in my testing.
Diffstat (limited to 'Modules/FindPkgConfig.cmake')
-rw-r--r--Modules/FindPkgConfig.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake
index 072a27a..3f75b19 100644
--- a/Modules/FindPkgConfig.cmake
+++ b/Modules/FindPkgConfig.cmake
@@ -193,7 +193,7 @@ function(_pkg_create_imp_target _prefix _no_cmake_path _no_cmake_environment_pat
foreach (flag IN LISTS ${_prefix}_LDFLAGS)
if (flag MATCHES "^-L(.*)")
# only look into the given paths from now on
- set(_find_opts "HINTS ${${CMAKE_MATCH_1}} NO_DEFAULT_PATH")
+ set(_find_opts HINTS ${CMAKE_MATCH_1} NO_DEFAULT_PATH)
continue()
endif()
if (flag MATCHES "^-l(.*)")