Skip to content

Commit 7154d82

Browse files
authored
Merge pull request #518 from gonsolo/conversion
Suppress a deprecation warning.
2 parents 0575eaf + da60a89 commit 7154d82

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,16 @@ SET (PBRT_UTIL_SOURCE
664664
src/pbrt/util/vecmath.cpp
665665
)
666666

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+
667677
SET (PBRT_UTIL_SOURCE_HEADERS
668678
src/pbrt/util/args.h
669679
src/pbrt/util/bluenoise.h

0 commit comments

Comments
 (0)