We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f37b68 commit 7dc306cCopy full SHA for 7dc306c
sdk/cmake/host-tools.cmake
@@ -38,8 +38,9 @@ function(configure_host_tools HOST_TOOLS_DIR)
38
# Make a host-tools target so it'll be built when needed
39
# custom target + symbolic output prevents cmake from running
40
# the command multiple times per build
41
+ # Specify the --config option, so the Release/Debug setting from the IDE can be used
42
add_custom_command(
- COMMAND ${CMAKE_COMMAND} --build ${HOST_TOOLS_DIR}
43
+ COMMAND ${CMAKE_COMMAND} --build ${HOST_TOOLS_DIR} --config $<CONFIG>
44
OUTPUT host_tools
45
BYPRODUCTS ${_target_locations})
46
add_custom_target(build-host-tools ALL DEPENDS host_tools)
0 commit comments