Skip to content

Commit

Permalink
Fix MSVC build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Makarov committed Oct 17, 2023
1 parent 45a791c commit 206bcac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thirdparty/tinygltf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ if (TINYGLTF_HEADER_ONLY)

else (TINYGLTF_HEADER_ONLY)
add_library(tinygltf)
target_compile_options(tinygltf PRIVATE -Wno-error)
if (NOT MSVC)
target_compile_options(tinygltf PRIVATE -Wno-error)
endif()
target_sources(tinygltf PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/tiny_gltf.cc)
target_include_directories(tinygltf
Expand Down

0 comments on commit 206bcac

Please sign in to comment.