mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 14:19:05 +08:00
bb4de6fe3f
* [ms-gltf] create a new port * [ms-gltf] install with CMAKE_INSTALL_PREFIX * add a patch to change install path style * [ms-gltf] enable iOS/UWP & support features * feature: support tests/samples to help debugging in buildtrees * triplet: ios/uwp are now available * [ms-gltf] disable Ninja for Windows * [ms-gltf] format the manifest json * [ms-gltf] update expected failures * x64-linux * [ms-gltf] format the manifest json * [ms-gltf] update comments * [ms-gltf] make "test" default feature * [ms-gltf] add version JSON * Address the review suggestions * vcpkg x-add-version ms-gltf * [ms-gltf] fix 'x64-osx' triplet 'samples' feature * [ms-gltf] update git-tree of port Co-authored-by: PhoebeHui <20694052+PhoebeHui@users.noreply.github.com>
67 lines
2.7 KiB
Diff
67 lines
2.7 KiB
Diff
diff --git a/GLTFSDK.Samples/CMakeLists.txt b/GLTFSDK.Samples/CMakeLists.txt
|
|
index a66ed93..d948ee2 100644
|
|
--- a/GLTFSDK.Samples/CMakeLists.txt
|
|
+++ b/GLTFSDK.Samples/CMakeLists.txt
|
|
@@ -1,4 +1,6 @@
|
|
cmake_minimum_required(VERSION 3.5)
|
|
-
|
|
+if(APPLE)
|
|
+ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
|
|
+endif()
|
|
add_subdirectory(Deserialize)
|
|
add_subdirectory(Serialize)
|
|
diff --git a/GLTFSDK.Samples/Deserialize/CMakeLists.txt b/GLTFSDK.Samples/Deserialize/CMakeLists.txt
|
|
index 791898c..6474aee 100644
|
|
--- a/GLTFSDK.Samples/Deserialize/CMakeLists.txt
|
|
+++ b/GLTFSDK.Samples/Deserialize/CMakeLists.txt
|
|
@@ -17,6 +17,8 @@ if (MSVC)
|
|
|
|
# Make sure that all PDB files on Windows are installed to the output folder. By default, only the debug build does this.
|
|
set_target_properties(Deserialize PROPERTIES COMPILE_PDB_NAME "Deserialize" COMPILE_PDB_OUTPUT_DIRECTORY "${RUNTIME_OUTPUT_DIRECTORY}")
|
|
+elseif(APPLE)
|
|
+ set_target_properties(Deserialize PROPERTIES CXX_STANDARD 17)
|
|
endif()
|
|
|
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
diff --git a/GLTFSDK.Samples/Deserialize/Source/main.cpp b/GLTFSDK.Samples/Deserialize/Source/main.cpp
|
|
index 80198fa..fb560e0 100644
|
|
--- a/GLTFSDK.Samples/Deserialize/Source/main.cpp
|
|
+++ b/GLTFSDK.Samples/Deserialize/Source/main.cpp
|
|
@@ -8,6 +8,9 @@
|
|
|
|
// Replace this with <filesystem> (and use std::filesystem rather than
|
|
// std::experimental::filesystem) if your toolchain fully supports C++17
|
|
+#if defined(__APPLE__)
|
|
+#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM
|
|
+#endif
|
|
#include <experimental/filesystem>
|
|
|
|
#include <fstream>
|
|
diff --git a/GLTFSDK.Samples/Serialize/CMakeLists.txt b/GLTFSDK.Samples/Serialize/CMakeLists.txt
|
|
index 5269da8..1129ea0 100644
|
|
--- a/GLTFSDK.Samples/Serialize/CMakeLists.txt
|
|
+++ b/GLTFSDK.Samples/Serialize/CMakeLists.txt
|
|
@@ -17,6 +17,8 @@ if (MSVC)
|
|
|
|
# Make sure that all PDB files on Windows are installed to the output folder. By default, only the debug build does this.
|
|
set_target_properties(Serialize PROPERTIES COMPILE_PDB_NAME "Serialize" COMPILE_PDB_OUTPUT_DIRECTORY "${RUNTIME_OUTPUT_DIRECTORY}")
|
|
+elseif(APPLE)
|
|
+ set_target_properties(Serialize PROPERTIES CXX_STANDARD 17)
|
|
endif()
|
|
|
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
diff --git a/GLTFSDK.Samples/Serialize/Source/main.cpp b/GLTFSDK.Samples/Serialize/Source/main.cpp
|
|
index ac87c10..f5c6e0b 100644
|
|
--- a/GLTFSDK.Samples/Serialize/Source/main.cpp
|
|
+++ b/GLTFSDK.Samples/Serialize/Source/main.cpp
|
|
@@ -10,6 +10,9 @@
|
|
|
|
// Replace this with <filesystem> (and use std::filesystem rather than
|
|
// std::experimental::filesystem) if your toolchain fully supports C++17
|
|
+#if defined(__APPLE__)
|
|
+#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM
|
|
+#endif
|
|
#include <experimental/filesystem>
|
|
|
|
#include <fstream>
|