Skip to content

Commit 187409a

Browse files
authored
Merge pull request #163 from Unity-Technologies/Uni-26814-game-wont-compile
Uni 26814 game won't compile
2 parents 9c04b67 + 5a31e1e commit 187409a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ set(FBXSDK_PACKAGE_TARGET import_fbxsdk)
8686
add_custom_target(
8787
${FBXSDK_PACKAGE_TARGET}
8888
# remove FbxSdk folder
89-
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/FbxSdk"
89+
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_SOURCE_DIR}/Assets/FbxSdk"
90+
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/FbxSdk"
9091
COMMAND "${UNITY_EDITOR_PATH}" -projectPath "${CMAKE_SOURCE_DIR}" -importPackage ${FBXSDK_PACKAGE_PATH} -quit
91-
COMMAND ${CMAKE_COMMAND} -E rename "${CMAKE_SOURCE_DIR}/Assets/FbxSdk" "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/FbxSdk"
92+
COMMAND ${CMAKE_COMMAND} -E rename "${CMAKE_SOURCE_DIR}/Assets/FbxSdk" "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/FbxSdk"
9293
)
9394

9495
###########################################################################
@@ -133,7 +134,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
133134
"${CSHARP_SYSTEM_LIBRARY}"
134135
"${CSHARP_UNITYEDITOR_LIBRARY}"
135136
"${CSHARP_UNITYENGINE_LIBRARY}"
136-
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/FbxSdk/Plugins/UnityFbxSdk.dll"
137+
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/FbxSdk/Plugins/UnityFbxSdk.dll"
137138
DEPENDS
138139
"${CLASS_LIBRARY_DEST}"
139140
${FBXSDK_PACKAGE_TARGET}
@@ -153,7 +154,9 @@ ENDIF()
153154

154155
add_custom_command(
155156
OUTPUT ${PACKAGE_PATH}
157+
COMMAND "${CMAKE_COMMAND}" -E remove_directory ${CMAKE_BINARY_DIR}/FbxExporterProject
156158
COMMAND "${CMAKE_COMMAND}" --build . --target install --config Release
159+
COMMAND "${CMAKE_COMMAND}" -E remove ${PACKAGE_PATH}
157160
COMMAND "${UNITY_EDITOR_PATH}" -batchmode -projectPath ${CMAKE_BINARY_DIR}/FbxExporterProject -exportPackage Assets/FbxExporters ${PACKAGE_PATH} -quit
158161
COMMENT "Creating Unity Package ${PACKAGE_PATH}"
159162
DEPENDS UnityFbxExporterEditorDLL

0 commit comments

Comments
 (0)