Skip to content

Commit 7dc306c

Browse files
committed
[SDK] Fix host-tools build from visual studio ide in Release
1 parent 5f37b68 commit 7dc306c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/cmake/host-tools.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ function(configure_host_tools HOST_TOOLS_DIR)
3838
# Make a host-tools target so it'll be built when needed
3939
# custom target + symbolic output prevents cmake from running
4040
# the command multiple times per build
41+
# Specify the --config option, so the Release/Debug setting from the IDE can be used
4142
add_custom_command(
42-
COMMAND ${CMAKE_COMMAND} --build ${HOST_TOOLS_DIR}
43+
COMMAND ${CMAKE_COMMAND} --build ${HOST_TOOLS_DIR} --config $<CONFIG>
4344
OUTPUT host_tools
4445
BYPRODUCTS ${_target_locations})
4546
add_custom_target(build-host-tools ALL DEPENDS host_tools)

0 commit comments

Comments
 (0)