blob: 614d64f1fa031ff269f182e3bcc02e448e8fda61 (
plain)
1
2
3
4
5
6
7
8
|
set(ENV_PATH "$ENV{PATH}")
foreach(path "/does_not_exist" "" "/bin" "/sbin")
unset(PrefixInPATH_INCLUDE_DIR CACHE)
set(ENV{PATH} "${CMAKE_CURRENT_SOURCE_DIR}${path}")
find_path(PrefixInPATH_INCLUDE_DIR NAMES PrefixInPATH.h)
message(STATUS "PrefixInPATH_INCLUDE_DIR='${PrefixInPATH_INCLUDE_DIR}'")
endforeach()
set(ENV{PATH} "${ENV_PATH}")
|