Fixed cmakes on windows

This commit is contained in:
2023-06-23 21:04:08 -07:00
parent 2c84dc1d58
commit 216fb5cbf7
3 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ function(tool_prefab in)
set(DEPS prefabtool)
endif()
STRING(REGEX REPLACE "[\.|\\|\/]" "-" prefab_name ${in})
STRING(REGEX REPLACE "[\.|\\|\/|\:]" "-" prefab_name ${in})
add_custom_target(prefab_${prefab_name}
COMMAND prefabtool --input="${in}" --output="${DAWN_GENERATED_DIR}/generatedprefabs" --sources="${DAWN_SOURCES_DIR}"
COMMENT "Generating prefab from ${in}"