From a27089cb9c884763a7bc5b744baf6fd6510d8315 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 26 Sep 2024 10:30:34 +0200 Subject: [PATCH] Revert "build: clang no longer needs a workaround for 75057" This reverts commit a7471ead8403e75d4067f4480e22529e2c5f9b92. --- src/core/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index bdbf5c879..ffbfc17b5 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -128,6 +128,10 @@ endif() if(CMAKE_CXX_MODULE_STD) target_compile_definitions(mp-units-core ${${projectPrefix}TARGET_SCOPE} ${projectPrefix}IMPORT_STD) + # https://github.com/llvm/llvm-project/issues/75057 + if(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19) + target_compile_options(mp-units-core ${${projectPrefix}TARGET_SCOPE} "-Wno-deprecated-declarations") + endif() endif() # UTF-8 source and execution character set