Skip to content

Commit 7a8a904

Browse files
committed
fix so making a package works on Windows
1 parent 24cc72f commit 7a8a904

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ set_target_properties(unity_tests PROPERTIES SUFFIX ".exe")
195195
# Make install does the right thing in all cases but it's overkill in release.
196196
add_custom_command(
197197
OUTPUT ${PACKAGE_PATH}
198-
${PACKAGE_TARGET}
199-
COMMAND "${CMAKE_COMMAND}" --build . --target install
198+
COMMAND "${CMAKE_COMMAND}" --build . --target install --config Release
200199
COMMAND "${UNITY_EDITOR_PATH}" -batchmode -projectPath ${CMAKE_BINARY_DIR}/tests/UnityTests -exportPackage Assets/FbxSdk ${PACKAGE_PATH} -quit
201200
COMMENT "Creating Unity Package ${PACKAGE_PATH}"
202201
DEPENDS UnityFbxSdkNative

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ mkdir FbxSharpBuild
5858
cd FbxSharpBuild
5959
cmake ../FbxSharp -G"Visual Studio 14 2015 Win64"
6060
cmake --build . --target INSTALL --config Release
61-
cmake --build . --target unitypackage
61+
cmake --build . --target unitypackage --config Release
6262
6363
# run the sample Unity code
6464
"C:/Program Files/Unity/Editor/Unity.exe" -projectpath %cd%/tests/UnityTests

0 commit comments

Comments
 (0)