summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_program/DirsPerName.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-01 20:33:24 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-02 14:17:22 (GMT)
commitfdbfc9f6777696bdba60feafb9bb9a2f3fe02828 (patch)
tree42658d535a1a57f0e2c6996e64daf8fce558c3f3 /Tests/RunCMake/find_program/DirsPerName.cmake
parent907a919be15e262eee75c10d06ce314e912abdbe (diff)
downloadCMake-fdbfc9f6777696bdba60feafb9bb9a2f3fe02828.zip
CMake-fdbfc9f6777696bdba60feafb9bb9a2f3fe02828.tar.gz
CMake-fdbfc9f6777696bdba60feafb9bb9a2f3fe02828.tar.bz2
Tests: Add explicit testing for find_program
Previously this command was tested only implicitly as part of larger tests. Add a RunCMake.find_program test to cover find_program cases specifically and independently.
Diffstat (limited to 'Tests/RunCMake/find_program/DirsPerName.cmake')
-rw-r--r--Tests/RunCMake/find_program/DirsPerName.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_program/DirsPerName.cmake b/Tests/RunCMake/find_program/DirsPerName.cmake
new file mode 100644
index 0000000..54db6dd
--- /dev/null
+++ b/Tests/RunCMake/find_program/DirsPerName.cmake
@@ -0,0 +1,6 @@
+find_program(PROG
+ NAMES testB testA
+ PATHS ${CMAKE_CURRENT_SOURCE_DIR}/A ${CMAKE_CURRENT_SOURCE_DIR}/B
+ NO_DEFAULT_PATH
+ )
+message(STATUS "PROG='${PROG}'")