mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 22:46:43 +00:00
[CMAKE] Fix host-tools path for MSVC IDE
This commit is contained in:
parent
1303a7dc1c
commit
b1bf3aae50
1 changed files with 5 additions and 2 deletions
|
@ -9,6 +9,9 @@ function(setup_host_tools)
|
||||||
list(TRANSFORM HOST_TOOLS PREPEND "${REACTOS_BINARY_DIR}/host-tools/bin/" OUTPUT_VARIABLE HOST_TOOLS_OUTPUT)
|
list(TRANSFORM HOST_TOOLS PREPEND "${REACTOS_BINARY_DIR}/host-tools/bin/" OUTPUT_VARIABLE HOST_TOOLS_OUTPUT)
|
||||||
if (CMAKE_HOST_WIN32)
|
if (CMAKE_HOST_WIN32)
|
||||||
list(TRANSFORM HOST_TOOLS_OUTPUT APPEND ".exe")
|
list(TRANSFORM HOST_TOOLS_OUTPUT APPEND ".exe")
|
||||||
|
if(MSVC_IDE)
|
||||||
|
set(HOST_EXTRA_DIR "$(ConfigurationName)/")
|
||||||
|
endif()
|
||||||
set(HOST_EXE_SUFFIX ".exe")
|
set(HOST_EXE_SUFFIX ".exe")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -26,7 +29,7 @@ function(setup_host_tools)
|
||||||
|
|
||||||
foreach(_tool ${HOST_TOOLS})
|
foreach(_tool ${HOST_TOOLS})
|
||||||
add_executable(native-${_tool} IMPORTED)
|
add_executable(native-${_tool} IMPORTED)
|
||||||
set_target_properties(native-${_tool} PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR}/bin/${_tool}${HOST_EXE_SUFFIX})
|
set_target_properties(native-${_tool} PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR}/bin/${HOST_EXTRA_DIR}${_tool}${HOST_EXE_SUFFIX})
|
||||||
add_dependencies(native-${_tool} host-tools ${INSTALL_DIR}/bin/${_tool}${HOST_EXE_SUFFIX})
|
add_dependencies(native-${_tool} host-tools ${INSTALL_DIR}/bin/${HOST_EXTRA_DIR}${_tool}${HOST_EXE_SUFFIX})
|
||||||
endforeach()
|
endforeach()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue