Skip to content

Commit da60a89

Browse files
committed
Restrict to GCC and Clang.
1 parent 7f21786 commit da60a89

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -662,11 +662,13 @@ SET (PBRT_UTIL_SOURCE
662662

663663
# A warning about a deprecated function in C++17 but the solution will only be
664664
# in C++26.
665-
set_source_files_properties(
666-
src/pbrt/util/string.cpp
667-
PROPERTIES
668-
COMPILE_FLAGS "-Wno-deprecated-declarations"
669-
)
665+
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
666+
set_source_files_properties(
667+
src/pbrt/util/string.cpp
668+
PROPERTIES
669+
COMPILE_FLAGS "-Wno-deprecated-declarations"
670+
)
671+
endif()
670672

671673
SET (PBRT_UTIL_SOURCE_HEADERS
672674
src/pbrt/util/args.h

0 commit comments

Comments
 (0)