We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59d8abf commit 54b50f7Copy full SHA for 54b50f7
CMakeLists.txt
@@ -118,8 +118,9 @@ function(cuco_set_common_compile_options target_name)
118
endif()
119
120
# Add Clang-specific warning suppression for deprecated literal operators
121
- # (Catch2 still uses deprecated syntax as of v3.9.1)
122
- if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+ # (Catch2 and cuco code still use deprecated syntax)
+ # Only for Clang 15+ which introduced this warning
123
+ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15.0)
124
target_compile_options(${target_name} PRIVATE -Xcompiler -Wno-deprecated-literal-operator)
125
126
endfunction()
0 commit comments