Merge pull request #518 from gonsolo/conversion

Suppress a deprecation warning.
This commit is contained in:
Matt Pharr 2026-05-16 07:42:02 -07:00 • committed by GitHub
commit 7154d8268b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -664,6 +664,16 @@ SET (PBRT_UTIL_SOURCE
src/pbrt/util/vecmath.cpp
)
# A warning about a deprecated function in C++17 but the solution will only be
# in C++26.
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
set_source_files_properties(
src/pbrt/util/string.cpp
PROPERTIES
COMPILE_FLAGS "-Wno-deprecated-declarations"
)
endif()
SET (PBRT_UTIL_SOURCE_HEADERS
src/pbrt/util/args.h
src/pbrt/util/bluenoise.h