|CMAKE] Use ExternalProject for host-tools build

This commit is contained in:
Jérôme Gardou
2020-10-22 08:47:06 +02:00
committed by Jérôme Gardou
parent 6cb3b62b4c
commit bbe47e61b1
4 changed files with 31 additions and 75 deletions

View File

@@ -95,9 +95,7 @@ if(NOT CMAKE_CROSSCOMPILING)
list(APPEND NATIVE_TARGETS rsym pefixup)
endif()
export(TARGETS ${NATIVE_TARGETS} FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
configure_file(sdk/cmake/host-tools.in ${CMAKE_BINARY_DIR}/TargetList.cmake)
install(TARGETS ${NATIVE_TARGETS})
else()
# Add host tools target
include(sdk/cmake/host-tools.cmake)