[Mlir-commits] [mlir] [mlir] Allow CXX standard to be overridden (PR #112957)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Oct 18 12:08:40 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Nikhil Kalra (nikalra)
<details>
<summary>Changes</summary>
MLIR previously hardcoded the CXX version to C++17. Updated to allow for the CXX version to be set by clients (mirrors other LLVM projects).
---
Full diff: https://github.com/llvm/llvm-project/pull/112957.diff
1 Files Affected:
- (modified) mlir/CMakeLists.txt (+1-1)
``````````diff
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt
index c6d44908a1111d..350a8404783bba 100644
--- a/mlir/CMakeLists.txt
+++ b/mlir/CMakeLists.txt
@@ -16,7 +16,7 @@ endif()
# Must go below project(..)
include(GNUInstallDirs)
-set(CMAKE_CXX_STANDARD 17)
+set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to conform to")
if(MLIR_STANDALONE_BUILD)
find_package(LLVM CONFIG REQUIRED)
``````````
</details>
https://github.com/llvm/llvm-project/pull/112957
More information about the Mlir-commits
mailing list