diff options
author | Brad King <brad.king@kitware.com> | 2016-03-22 15:15:33 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-03-22 15:15:33 (GMT) |
commit | 86eb327cda1e1c3eeb5af5bccba8b2dd20ee84fd (patch) | |
tree | 6cb97176129e2187994fbd12f519d1cb80e3b262 /Tests | |
parent | d7cdec2d546f0f43526dce017b66d98438d19043 (diff) | |
parent | 6f4f90548353d9e329bd4ddb2f7492788f28f0e1 (diff) | |
download | CMake-86eb327cda1e1c3eeb5af5bccba8b2dd20ee84fd.zip CMake-86eb327cda1e1c3eeb5af5bccba8b2dd20ee84fd.tar.gz CMake-86eb327cda1e1c3eeb5af5bccba8b2dd20ee84fd.tar.bz2 |
Merge topic 'fix-repeat-pkg-config'
6f4f9054 FindPkgConfig: set correctly named variables in cache (#15903)
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/FindPkgConfig/FindPkgConfig_cache_variables.cmake | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Tests/RunCMake/FindPkgConfig/FindPkgConfig_cache_variables.cmake b/Tests/RunCMake/FindPkgConfig/FindPkgConfig_cache_variables.cmake index 8d8d000..d0046ca 100644 --- a/Tests/RunCMake/FindPkgConfig/FindPkgConfig_cache_variables.cmake +++ b/Tests/RunCMake/FindPkgConfig/FindPkgConfig_cache_variables.cmake @@ -1,14 +1,15 @@ +cmake_minimum_required(VERSION 3.3) + find_package(PkgConfig REQUIRED) pkg_check_modules(NCURSES QUIET ncurses) if (NCURSES_FOUND) foreach (variable IN ITEMS PREFIX INCLUDEDIR LIBDIR) - get_property("${variable}" + get_property(value CACHE "NCURSES_${variable}" - PROPERTY TYPE - SET) - if (NOT ${variable}) - message(FATAL_ERROR "Failed to set cache entry for NCURSES_${variable}") + PROPERTY VALUE) + if (NOT value STREQUAL NCURSES_${variable}) + message(FATAL_ERROR "Failed to set cache entry for NCURSES_${variable}:\nexpected -->${value}<--\nreceived -->${NCURSES_${variable}}<--") endif () endforeach () else () |