summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_program/EnvAndHints.cmake
blob: 14ebd6e2fc4f6a6f36be21d397856bb33b06f94f (plain)
1
2
3
4
5
6
7
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}")