summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_program/EnvAndHints.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/find_program/EnvAndHints.cmake')
-rw-r--r--Tests/RunCMake/find_program/EnvAndHints.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_program/EnvAndHints.cmake b/Tests/RunCMake/find_program/EnvAndHints.cmake
new file mode 100644
index 0000000..14ebd6e
--- /dev/null
+++ b/Tests/RunCMake/find_program/EnvAndHints.cmake
@@ -0,0 +1,8 @@
+set(ENV_PATH "$ENV{PATH}")
+set(ENV{PATH} ${CMAKE_CURRENT_SOURCE_DIR}/A)
+find_program(PROG
+ NAMES testAandB
+ HINTS ${CMAKE_CURRENT_SOURCE_DIR}/A ${CMAKE_CURRENT_SOURCE_DIR}/B
+ )
+message(STATUS "PROG='${PROG}'")
+set(ENV{PATH} "${ENV_PATH}")