mirror of
https://github.com/mmp/pbrt-v4
synced 2026-09-26 16:20:07 +03:00
Merge pull request #518 from gonsolo/conversion
Suppress a deprecation warning.
This commit is contained in:
commit
7154d8268b
1 changed files with 10 additions and 0 deletions
|
|
@ -664,6 +664,16 @@ SET (PBRT_UTIL_SOURCE
|
||||||
src/pbrt/util/vecmath.cpp
|
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
|
SET (PBRT_UTIL_SOURCE_HEADERS
|
||||||
src/pbrt/util/args.h
|
src/pbrt/util/args.h
|
||||||
src/pbrt/util/bluenoise.h
|
src/pbrt/util/bluenoise.h
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue