summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-06-01 13:37:34 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-06-01 13:37:34 (GMT)
commit836c4e9314f5afbde132ae34ed5cbfd5e422f905 (patch)
tree037da318de15e6d19aca6fdbf2696ded56ea3085 /Modules
parent02c4aa1f97f5436e3f2f2ba07c492a24bad04c4f (diff)
parentd4c6531a945564d230200512c680ca8570b10a6c (diff)
downloadCMake-836c4e9314f5afbde132ae34ed5cbfd5e422f905.zip
CMake-836c4e9314f5afbde132ae34ed5cbfd5e422f905.tar.gz
CMake-836c4e9314f5afbde132ae34ed5cbfd5e422f905.tar.bz2
Merge topic 'FindPkgConfig_fix_extra_path'
d4c6531a FindPkgConfig: Fix extra paths for CMAKE_{FRAMEWORK,APPBUNDLE}_PATH vars
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindPkgConfig.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake
index 64ccde5..53c17f1 100644
--- a/Modules/FindPkgConfig.cmake
+++ b/Modules/FindPkgConfig.cmake
@@ -149,7 +149,7 @@ function(_pkgconfig_add_extra_path _extra_paths_var _var)
endif()
if(NOT _is_env)
if(NOT "${${_var}}" STREQUAL "")
- list(APPEND ${_extra_paths_var} ${CMAKE_PREFIX_PATH})
+ list(APPEND ${_extra_paths_var} ${${_var}})
endif()
else()
if(NOT "$ENV{${_var}}" STREQUAL "")