diff options
| author | Nikhil Kalra <nkalra@apple.com> | 2024-10-18 15:22:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-18 15:22:39 -0700 |
| commit | e26151913cbfeb52f3e16098707b5e5ddc413b17 (patch) | |
| tree | 9894217f22b31528765aa90aa77edc7657e3b6c9 /mlir/CMakeLists.txt | |
| parent | 03dcd88c781d06f917750f3a7f6df9ac7f7f67d9 (diff) | |
[mlir] Allow CXX standard to be overridden (#112957)
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).
Diffstat (limited to 'mlir/CMakeLists.txt')
| -rw-r--r-- | mlir/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt index 599a1cbaafd8..1e80daabddec 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) |
