We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0575eaf + da60a89 commit 7154d82Copy full SHA for 7154d82
1 file changed
CMakeLists.txt
@@ -664,6 +664,16 @@ SET (PBRT_UTIL_SOURCE
664
src/pbrt/util/vecmath.cpp
665
)
666
667
+# A warning about a deprecated function in C++17 but the solution will only be
668
+# in C++26.
669
+if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
670
+ set_source_files_properties(
671
+ src/pbrt/util/string.cpp
672
+ PROPERTIES
673
+ COMPILE_FLAGS "-Wno-deprecated-declarations"
674
+ )
675
+endif()
676
+
677
SET (PBRT_UTIL_SOURCE_HEADERS
678
src/pbrt/util/args.h
679
src/pbrt/util/bluenoise.h
0 commit comments