summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/tests/GENERATE_SHLIBS/DEB-Prerequirements.cmake
diff options
context:
space:
mode:
authorDomen Vrankar <domen.vrankar@gmail.com>2016-11-27 19:35:13 (GMT)
committerDomen Vrankar <domen.vrankar@gmail.com>2016-11-27 22:20:35 (GMT)
commita8a47098082a57a5b22cac546f030b551e1b9c32 (patch)
tree5fe975d99ff737c629d42c1d00ac0c3f2f400b82 /Tests/RunCMake/CPack/tests/GENERATE_SHLIBS/DEB-Prerequirements.cmake
parent48456535f3c59e19572857d7071d9551783e06d6 (diff)
downloadCMake-a8a47098082a57a5b22cac546f030b551e1b9c32.zip
CMake-a8a47098082a57a5b22cac546f030b551e1b9c32.tar.gz
CMake-a8a47098082a57a5b22cac546f030b551e1b9c32.tar.bz2
Tests: CPack/DEB test change prerequirements check
Prerequirements should be searched for in generator prerequirements function and only checked for presence in configure file in per test prerequirements function.
Diffstat (limited to 'Tests/RunCMake/CPack/tests/GENERATE_SHLIBS/DEB-Prerequirements.cmake')
-rw-r--r--Tests/RunCMake/CPack/tests/GENERATE_SHLIBS/DEB-Prerequirements.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/CPack/tests/GENERATE_SHLIBS/DEB-Prerequirements.cmake b/Tests/RunCMake/CPack/tests/GENERATE_SHLIBS/DEB-Prerequirements.cmake
index b98065a..be44b2e 100644
--- a/Tests/RunCMake/CPack/tests/GENERATE_SHLIBS/DEB-Prerequirements.cmake
+++ b/Tests/RunCMake/CPack/tests/GENERATE_SHLIBS/DEB-Prerequirements.cmake
@@ -1,5 +1,5 @@
-function(get_test_prerequirements found_var)
- find_program(READELF_EXECUTABLE NAMES readelf)
+function(get_test_prerequirements found_var config_file)
+ include(${config_file})
if(READELF_EXECUTABLE)
set(${found_var} true PARENT_SCOPE)