Skip to content

Commit

Permalink
Suppress warning #20012-D
Browse files Browse the repository at this point in the history
  • Loading branch information
pfxuan committed May 8, 2024
1 parent e861818 commit 1136b9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: OpenSplat (Ubuntu CUDA)
on:
push:
branches:
- main
- fix-nvcc-warning-20012
pull_request:
types: [ assigned, opened, synchronize, reopened ]
release:
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
cmake_policy(SET CMP0135 NEW)
endif()
# Suppress warning #20012-D (nvcc and glm)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -diag-suppress=20012)

include(FetchContent)
FetchContent_Declare(nlohmann_json
URL https://github.com/nlohmann/json/archive/refs/tags/v3.11.3.zip
Expand Down

0 comments on commit 1136b9e

Please sign in to comment.