diff --git a/Build/CMake/Modules/GLTFPlatform.cmake b/Build/CMake/Modules/GLTFPlatform.cmake index ef803e9..af0ca7f 100644 --- a/Build/CMake/Modules/GLTFPlatform.cmake +++ b/Build/CMake/Modules/GLTFPlatform.cmake @@ -39,6 +39,8 @@ elseif (IOS_PLATFORM) endif() elseif (MSVC) set(${outPlatform} "windows_${CMAKE_GENERATOR_PLATFORM}" PARENT_SCOPE) +elseif (UNIX AND NOT APPLE) + set(${outPlatform} "${CMAKE_SYSTEM_NAME}" PARENT_SCOPE) else() # MacOS set(${outPlatform} macOS PARENT_SCOPE) diff --git a/GLTFSDK.Samples/Deserialize/CMakeLists.txt b/GLTFSDK.Samples/Deserialize/CMakeLists.txt index 46eca91..ba4f7f6 100644 --- a/GLTFSDK.Samples/Deserialize/CMakeLists.txt +++ b/GLTFSDK.Samples/Deserialize/CMakeLists.txt @@ -29,4 +29,8 @@ target_link_libraries(Deserialize GLTFSDK ) +if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.1) + target_link_libraries(Deserialize stdc++fs) +endif() + CreateGLTFInstallTargets(Deserialize ${Platform}) diff --git a/GLTFSDK.Samples/Serialize/CMakeLists.txt b/GLTFSDK.Samples/Serialize/CMakeLists.txt index b5fe248..d17ee2f 100644 --- a/GLTFSDK.Samples/Serialize/CMakeLists.txt +++ b/GLTFSDK.Samples/Serialize/CMakeLists.txt @@ -29,4 +29,8 @@ target_link_libraries(Serialize GLTFSDK ) +if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.1) + target_link_libraries(Serialize stdc++fs) +endif() + CreateGLTFInstallTargets(Serialize ${Platform})