Skip to content

Commit 7f21786

Browse files
committed
Suppress a deprecation warning.
The solution for the warning in string.cpp will only arrive in C++26.
1 parent 970fee0 commit 7f21786

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,14 @@ SET (PBRT_UTIL_SOURCE
660660
src/pbrt/util/vecmath.cpp
661661
)
662662

663+
# A warning about a deprecated function in C++17 but the solution will only be
664+
# in C++26.
665+
set_source_files_properties(
666+
src/pbrt/util/string.cpp
667+
PROPERTIES
668+
COMPILE_FLAGS "-Wno-deprecated-declarations"
669+
)
670+
663671
SET (PBRT_UTIL_SOURCE_HEADERS
664672
src/pbrt/util/args.h
665673
src/pbrt/util/bluenoise.h

0 commit comments

Comments
 (0)