Skip to content

Commit 7108dcd

Browse files
authored
Merge pull request #207 from Unity-Technologies/UNI-28918-fix-cmake-debug-mode-error
UNI-28918 fix CMakeLists so that debug build type packages source
2 parents 51ea6a0 + 628f89d commit 7108dcd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ add_custom_command(
235235
COMMAND "${CMAKE_COMMAND}" -E remove ${PACKAGE_PATH}
236236
COMMAND "${UNITY_EDITOR_PATH}" -batchmode -projectPath ${CMAKE_BINARY_DIR}/FbxExporterProject -exportPackage Assets/FbxExporters ${PACKAGE_PATH} -quit
237237
COMMENT "Creating Unity Package ${PACKAGE_PATH}"
238-
DEPENDS UnityFbxExporterEditorDLL
239238
)
240239
add_custom_target(unitypackage DEPENDS ${PACKAGE_PATH} ${FBXSDK_PACKAGE_TARGET} ${MAYA_INTEGRATION_TARGET} ${MAX_INTEGRATION_TARGET} ${README_TARGET})
241240

@@ -264,5 +263,9 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release")
264263
install(FILES ${CLASS_LIBRARY_DEST}/${RUNTIME_CLASS_LIBRARY_NAME} DESTINATION FbxExporters)
265264
else()
266265
install(DIRECTORY ${CMAKE_SOURCE_DIR}/Assets/FbxExporters
267-
DESTINATION .)
266+
DESTINATION .
267+
PATTERN "Editor/UnitTests" EXCLUDE
268+
PATTERN "FbxTurnTableBase.cs" EXCLUDE
269+
PATTERN "Editor/ReviewLastSavedModel.cs" EXCLUDE
270+
PATTERN "Editor/EditorRotate.cs" EXCLUDE)
268271
endif()

0 commit comments

Comments
 (0)