8ea7611bc3
When more than one value is given to the NAMES option this command by default will consider one name at a time and search every directory for it. Add a NAMES_PER_DIR option to tell this command to consider one directory at a time and search for all names in it.
7 lines
175 B
CMake
7 lines
175 B
CMake
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}'")
|