Skip to content

Commit

Permalink
-Wno-unknown-pragmas even for GCC < 13
Browse files Browse the repository at this point in the history
  • Loading branch information
azrogers committed Feb 5, 2025
1 parent 108e3b0 commit 3b1d6e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/macros/configure_cesium_library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ function(configure_cesium_library targetName)
# Disable dangling-reference warning due to amount of false positives: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109642
# Also disable unknown pragmas warning so we can use #pragma region
target_compile_options(${targetName} PRIVATE -Wno-dangling-reference -Wno-unknown-pragmas)
elseif(CMAKE_CXX_COMPILE_ID STREQUAL "GCC")
target_compile_options(${targetName} PRIVATE -Wno-unknown-pragmas)
endif()

if (CESIUM_GLM_STRICT_ENABLED)
Expand Down

0 comments on commit 3b1d6e3

Please sign in to comment.