Skip to content

Commit b902fa1

Browse files
committed
fix win build
1 parent b3ed6a7 commit b902fa1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
171171
"${CSHARP_SYSTEM_LIBRARY}"
172172
"${CSHARP_UNITYEDITOR_LIBRARY}"
173173
"${CSHARP_UNITYENGINE_LIBRARY}"
174-
"${CSHARP_UNITYENGINE_TIMELINE_LIBRARY}"
175-
"${CSHARP_UNITYEDITOR_TIMELINE_LIBRARY}"
176174
DEPENDS
177175
"${CLASS_LIBRARY_DEST}"
178176
)
@@ -196,6 +194,8 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
196194
"${CSHARP_SYSTEM_LIBRARY}"
197195
"${CSHARP_UNITYEDITOR_LIBRARY}"
198196
"${CSHARP_UNITYENGINE_LIBRARY}"
197+
"${CSHARP_UNITYEDITOR_TIMELINE_LIBRARY}"
198+
"${CSHARP_UNITYENGINE_TIMELINE_LIBRARY}"
199199
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/FbxSdk/Plugins/UnityFbxSdk.dll"
200200
${CLASS_LIBRARY_DEST}/${RUNTIME_CLASS_LIBRARY_NAME}
201201
DEPENDS

deps/cmake/FindUnity.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ else()
7777
# The editor is .../Unity.exe
7878
# The dlls are in .../Editor/Data/.../*.dll
7979
get_filename_component(UNITY_EXTENSION_ROOT "${UNITY_EDITOR_PATH}" PATH)
80+
get_filename_component(UNITY_EXTENSION_ROOT "${UNITY_EXTENSION_ROOT}" DIRECTORY)
8081
set(UNITY_EXTENSION_ROOT "${UNITY_EXTENSION_ROOT}/Editor/Data")
8182
list(APPEND UNITY_EXTENSION_PATHS "${UNITY_EXTENSION_ROOT}/UnityExtensions/Unity/Timeline/Editor")
8283
list(APPEND UNITY_EXTENSION_PATHS "${UNITY_EXTENSION_ROOT}/UnityExtensions/Unity/Timeline/RuntimeEditor")

0 commit comments

Comments
 (0)