Skip to content

Commit 5760a06

Browse files
committed
make sure pyc files get removed before packaging
1 parent 24a714d commit 5760a06

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ endif()
143143

144144
###########################################################################
145145
# Add target for creating a package
146+
147+
# remove .pyc files that we don't want to ship
148+
file(GLOB PYC_FILES "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Integrations/Autodesk/maya/scripts/unityOneClick/*.pyc")
149+
IF( PYC_FILES )
150+
file(REMOVE ${PYC_FILES})
151+
ENDIF()
152+
146153
add_custom_command(
147154
OUTPUT ${PACKAGE_PATH}
148155
COMMAND "${CMAKE_COMMAND}" --build . --target install --config Release

0 commit comments

Comments
 (0)