summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_program/NamesPerDir.cmake
blob: 5f00a28d0ad456137c990dd58354a78867acdc68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
find_program(PROG
  NAMES testB testA NAMES_PER_DIR
  PATHS ${CMAKE_CURRENT_SOURCE_DIR}/A ${CMAKE_CURRENT_SOURCE_DIR}/B
  NO_DEFAULT_PATH
  )
message(STATUS "PROG='${PROG}'")

find_program(PROG_ABS
  NAMES ${CMAKE_CURRENT_SOURCE_DIR}/A/testA NAMES_PER_DIR
  NO_DEFAULT_PATH
  )
message(STATUS "PROG_ABS='${PROG_ABS}'")