https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7dc306c440739c46ac671…
commit 7dc306c440739c46ac6710b442f3c19a1917ac91
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sun Jul 5 17:11:28 2020 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Thu Jul 9 21:32:53 2020 +0200
[SDK] Fix host-tools build from visual studio ide in Release
---
sdk/cmake/host-tools.cmake | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sdk/cmake/host-tools.cmake b/sdk/cmake/host-tools.cmake
index c14827590d3..92eb199df77 100644
--- a/sdk/cmake/host-tools.cmake
+++ b/sdk/cmake/host-tools.cmake
@@ -38,8 +38,9 @@ function(configure_host_tools HOST_TOOLS_DIR)
# Make a host-tools target so it'll be built when needed
# custom target + symbolic output prevents cmake from running
# the command multiple times per build
+ # Specify the --config option, so the Release/Debug setting from the IDE can be used
add_custom_command(
- COMMAND ${CMAKE_COMMAND} --build ${HOST_TOOLS_DIR}
+ COMMAND ${CMAKE_COMMAND} --build ${HOST_TOOLS_DIR} --config $<CONFIG>
OUTPUT host_tools
BYPRODUCTS ${_target_locations})
add_custom_target(build-host-tools ALL DEPENDS host_tools)