mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:02:58 +00:00
Search for host-tools path
Allows source-relative paths
This commit is contained in:
parent
f67345320f
commit
0341ea5e7b
1 changed files with 6 additions and 1 deletions
|
@ -48,7 +48,12 @@ function(setup_host_tools)
|
||||||
if(WITH_HOST_TOOLS)
|
if(WITH_HOST_TOOLS)
|
||||||
# Use pre-built tools, required for cross compiling with msvc
|
# Use pre-built tools, required for cross compiling with msvc
|
||||||
# as only one target architecture is available at a time
|
# as only one target architecture is available at a time
|
||||||
set(HOST_TOOLS_DIR ${WITH_HOST_TOOLS})
|
find_path(HOST_TOOLS_DIR
|
||||||
|
NAMES ImportExecutables.cmake
|
||||||
|
HINTS ${WITH_HOST_TOOLS} ${REACTOS_SOURCE_DIR}/${WITH_HOST_TOOLS}
|
||||||
|
NO_CMAKE_PATH
|
||||||
|
NO_CMAKE_ENVIRONMENT_PATH)
|
||||||
|
message(STATUS "Using prebuilt host tools: ${HOST_TOOLS_DIR}")
|
||||||
include(${HOST_TOOLS_DIR}/ImportExecutables.cmake)
|
include(${HOST_TOOLS_DIR}/ImportExecutables.cmake)
|
||||||
else()
|
else()
|
||||||
# Build host-tools. Changes to tool sources will rebuild targets
|
# Build host-tools. Changes to tool sources will rebuild targets
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue