We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f21786 commit da60a89Copy full SHA for da60a89
1 file changed
CMakeLists.txt
@@ -662,11 +662,13 @@ SET (PBRT_UTIL_SOURCE
662
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
-)
+if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
+ set_source_files_properties(
+ src/pbrt/util/string.cpp
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-deprecated-declarations"
670
+ )
671
+endif()
672
673
SET (PBRT_UTIL_SOURCE_HEADERS
674
src/pbrt/util/args.h
0 commit comments