From da6b555ed05f15268b45ac0da70e5ee7600d92eb Mon Sep 17 00:00:00 2001 From: minggo Date: Thu, 28 Nov 2024 17:40:00 +0800 Subject: [PATCH] fix compiling error --- CI/build.sh | 4 +++- CMakeLists.txt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CI/build.sh b/CI/build.sh index 6d113ce5..f7bc7498 100755 --- a/CI/build.sh +++ b/CI/build.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + IsWindows=false IsMacOS=false IsLinux=false @@ -267,7 +269,7 @@ build() { if [ ! -d "$cmakeInstallPrefix" ] || [ ! -e "$cmakeInstallPrefix" ]; then echo 'Installation failed.' - exit -1 + exit 1 fi if [ -n "$ArtifactPath" ]; then diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d69cb11..299bd4db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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\ @@ -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$<$:Debug>")