Skip to content

Commit

Permalink
fix compiling error
Browse files Browse the repository at this point in the history
  • Loading branch information
minggo committed Nov 28, 2024
1 parent 49094ca commit da6b555
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CI/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e

IsWindows=false
IsMacOS=false
IsLinux=false
Expand Down Expand Up @@ -267,7 +269,7 @@ build() {

if [ ! -d "$cmakeInstallPrefix" ] || [ ! -e "$cmakeInstallPrefix" ]; then
echo 'Installation failed.'
exit -1
exit 1
fi

if [ -n "$ArtifactPath" ]; then
Expand Down
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.5)
project(FBX2glTF)

set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")

set(typical_usage_str
"Example usage:\n\
> mkdir -p build_debug\n\
Expand Down Expand Up @@ -242,7 +244,7 @@ target_include_directories(libFBX2glTF SYSTEM PUBLIC
target_include_directories(appFBX2glTF PUBLIC
"third_party/CLI11"
)
target_link_libraries(appFBX2glTF libFBX2glTF)
target_link_libraries(appFBX2glTF libFBX2glTF fmt::fmt-header-only)

if(MSVC)
set_target_properties(libFBX2glTF PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
Expand Down

0 comments on commit da6b555

Please sign in to comment.