From 216fb5cbf7432c50eeccdef5a5dc208797cff05c Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Fri, 23 Jun 2023 21:04:08 -0700 Subject: [PATCH] Fixed cmakes on windows --- src/dawntools/prefabtool/CMakeLists.txt | 2 +- src/dawntools/scenetool/CMakeLists.txt | 2 +- src/dawntools/vnscenetool/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dawntools/prefabtool/CMakeLists.txt b/src/dawntools/prefabtool/CMakeLists.txt index b8115af4..c0be18a7 100644 --- a/src/dawntools/prefabtool/CMakeLists.txt +++ b/src/dawntools/prefabtool/CMakeLists.txt @@ -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}" diff --git a/src/dawntools/scenetool/CMakeLists.txt b/src/dawntools/scenetool/CMakeLists.txt index 93cb94d7..d6bf13c9 100644 --- a/src/dawntools/scenetool/CMakeLists.txt +++ b/src/dawntools/scenetool/CMakeLists.txt @@ -47,7 +47,7 @@ function(tool_scene in) set(DEPS scenetool) endif() - STRING(REGEX REPLACE "[\.|\\|\/]" "-" scene_name ${in}) + STRING(REGEX REPLACE "[\.|\\|\/|\:]" "-" scene_name ${in}) add_custom_target(scene_${scene_name} COMMAND scenetool --input="${in}" --output="${DAWN_GENERATED_DIR}/generatedscenes" --sources="${DAWN_SOURCES_DIR}" COMMENT "Generating scene from ${in}" diff --git a/src/dawntools/vnscenetool/CMakeLists.txt b/src/dawntools/vnscenetool/CMakeLists.txt index bf779c19..995a2e16 100644 --- a/src/dawntools/vnscenetool/CMakeLists.txt +++ b/src/dawntools/vnscenetool/CMakeLists.txt @@ -50,7 +50,7 @@ function(tool_vnscene in) set(DEPS vnscenetool) endif() - STRING(REGEX REPLACE "[\.|\\|\/]" "-" scene_name ${in}) + STRING(REGEX REPLACE "[\.|\\|\/|\:]" "-" scene_name ${in}) add_custom_target(scene_${scene_name} COMMAND vnscenetool --input="${in}" --output="${DAWN_GENERATED_DIR}/generatedscenes" COMMENT "Generating vnscene from ${in}"