summaryrefslogtreecommitdiff
path: root/mlir/CMakeLists.txt
diff options
context:
space:
mode:
authorNikhil Kalra <nkalra@apple.com>2024-10-18 15:22:39 -0700
committerGitHub <noreply@github.com>2024-10-18 15:22:39 -0700
commite26151913cbfeb52f3e16098707b5e5ddc413b17 (patch)
tree9894217f22b31528765aa90aa77edc7657e3b6c9 /mlir/CMakeLists.txt
parent03dcd88c781d06f917750f3a7f6df9ac7f7f67d9 (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.txt2
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)