Skip to content

Commit

Permalink
Enable TAEF path specification via environment variable (#2778) (#2898)
Browse files Browse the repository at this point in the history
  • Loading branch information
hekota committed May 22, 2020
1 parent 5c00487 commit 068ddf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/modules/FindTAEF.cmake
Expand Up @@ -10,6 +10,8 @@ find_path(TAEF_INCLUDE_DIR # Set variable TAEF_INCLUDE_DIR
HINTS "${CMAKE_SOURCE_DIR}/external/taef/build/Include"
HINTS "${WINDOWS_KIT_10_PATH}/Testing/Development/inc"
HINTS "${WINDOWS_KIT_81_PATH}/Testing/Development/inc"
HINTS "$ENV{TAEF_PATH}/../../../Include"
HINTS "$ENV{TAEF_PATH}/../../../Development/inc"
DOC "path to TAEF header files"
HINTS
)
Expand Down Expand Up @@ -68,6 +70,9 @@ elseif(EXISTS "${WINDOWS_KIT_10_PATH}/Testing/Runtimes/TAEF/x86/te.exe"
elseif(EXISTS "${WINDOWS_KIT_81_PATH}/Testing/Runtimes/TAEF/x86/te.exe"
AND EXISTS "${WINDOWS_KIT_81_PATH}/Testing/Runtimes/TAEF/x64/te.exe")
set(TAEF_BIN_DIR "${WINDOWS_KIT_81_PATH}/Testing/Runtimes/TAEF")
elseif(EXISTS "${TAEF_PATH}/te.exe")
set(TAEF_BIN_DIR "${TAEF_PATH}/..")
message("TAEF_BIN_DIR=${TAEF_BIN_DIR}")
elseif(EXISTS "${WINDOWS_KIT_10_PATH}")
message(ERROR "Unable to find TAEF binaries under Windows 10 SDK.")
elseif(EXISTS "${WINDOWS_KIT_81_PATH}")
Expand Down

0 comments on commit 068ddf8

Please sign in to comment.