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.
2 parents 42a0c46 + 40e14e3 commit c3036c8Copy full SHA for c3036c8
cmake/modules/SwiftAddCustomCommandTarget.cmake
@@ -122,7 +122,9 @@ function(add_custom_command_target dependency_out_var_name)
122
if("${ACCT_CUSTOM_TARGET_NAME}" STREQUAL "")
123
# CMake doesn't allow '/' characters in filenames, so replace them with '-'
124
list(GET ACCT_OUTPUT 0 output_filename)
125
- string(REPLACE "/" "-" target_name "${output_filename}")
+ string(REPLACE "${CMAKE_BINARY_DIR}/" "" target_name "${output_filename}")
126
+ string(REPLACE "${CMAKE_CFG_INTDIR}/" "" target_name "${target_name}")
127
+ string(REPLACE "/" "-" target_name "${target_name}")
128
else()
129
set(target_name "${ACCT_CUSTOM_TARGET_NAME}")
130
endif()
0 commit comments