File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,9 @@ file(REMOVE "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/${MAX_INTEGRATION_ZIP_NAME}
122
122
file (GLOB_RECURSE META_FILES "${CMAKE_SOURCE_DIR} /Assets/Integrations/*.meta" )
123
123
124
124
add_custom_command (OUTPUT ${MAYA_INTEGRATION_ZIP_NAME}
125
- COMMAND ${CMAKE_COMMAND} -E remove ${META_FILES}
125
+ IF (META_FILES )
126
+ COMMAND ${CMAKE_COMMAND} -E remove ${META_FILES}
127
+ ENDIF
126
128
COMMAND ${CMAKE_COMMAND} -E tar "cfv" ${CMAKE_SOURCE_DIR} /Assets/FbxExporters/${MAYA_INTEGRATION_ZIP_NAME} --format=zip
127
129
"${CMAKE_SOURCE_DIR} /Assets/Integrations/Autodesk/maya"
128
130
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} /Assets
@@ -133,7 +135,9 @@ add_custom_target(${MAYA_INTEGRATION_TARGET} DEPENDS ${MAYA_INTEGRATION_ZIP_NAME
133
135
134
136
135
137
add_custom_command (OUTPUT ${MAX_INTEGRATION_ZIP_NAME}
136
- COMMAND ${CMAKE_COMMAND} -E remove ${META_FILES}
138
+ IF (META_FILES )
139
+ COMMAND ${CMAKE_COMMAND} -E remove ${META_FILES}
140
+ ENDIF
137
141
COMMAND ${CMAKE_COMMAND} -E tar "cfv" ${CMAKE_SOURCE_DIR} /Assets/FbxExporters/${MAX_INTEGRATION_ZIP_NAME} --format=zip
138
142
"${CMAKE_SOURCE_DIR} /Assets/Integrations/Autodesk/max"
139
143
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} /Assets
You can’t perform that action at this time.
0 commit comments