CMake/Tests/RunCMake/find_program/DirsPerName.cmake

7 lines
161 B
CMake

find_program(PROG
NAMES testB testA
PATHS ${CMAKE_CURRENT_SOURCE_DIR}/A ${CMAKE_CURRENT_SOURCE_DIR}/B
NO_DEFAULT_PATH
)
message(STATUS "PROG='${PROG}'")