Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support build on *NIX platforms #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Build/CMake/Modules/GLTFPlatform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions GLTFSDK.Samples/Deserialize/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
4 changes: 4 additions & 0 deletions GLTFSDK.Samples/Serialize/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})