fix: normalize asset root path for source_group on windows (#324)

This commit is contained in:
yangchao
2026-09-07 21:41:36 +08:00
committed by GitHub
parent 7f806abad6
commit 0c3f4534b8
+3 -2
View File
@@ -49,8 +49,9 @@ endmacro()
macro(cc_windows_after_target _target_name)
source_group(TREE ${RES_DIR}/data PREFIX "Resources" FILES ${CC_ASSET_FILES})
get_filename_component(CC_ASSET_ROOT "${RES_DIR}/data" ABSOLUTE)
source_group(TREE ${CC_ASSET_ROOT} PREFIX "Resources" FILES ${CC_ASSET_FILES})
source_group(TREE ${CC_PROJECT_DIR} PREFIX "Source Files" FILES ${CC_PROJ_SOURCES})
source_group(TREE ${CC_PROJECT_DIR}/../common PREFIX "Source Files" FILES ${CC_COMMON_SOURCES})