[llvm-branch-commits] [mlir] 5036912 - Add `set(CMAKE_CXX_STANDARD 17)` to MLIR CMakeLists.txt
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Feb 9 05:01:07 PST 2023
Author: Mehdi Amini
Date: 2023-02-09T13:55:36+01:00
New Revision: 5036912174acb051468611a25f1b43b4e8336be9
URL: https://github.com/llvm/llvm-project/commit/5036912174acb051468611a25f1b43b4e8336be9
DIFF: https://github.com/llvm/llvm-project/commit/5036912174acb051468611a25f1b43b4e8336be9.diff
LOG: Add `set(CMAKE_CXX_STANDARD 17)` to MLIR CMakeLists.txt
This is only useful when building the project in a "standalone" way: that is by
invoking cmake pointing at mlir/ to build against an already built LLVM.
Fixes #60574
Added:
Modified:
mlir/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt
index ab690b16a4fb8..c9b0d53bc3e94 100644
--- a/mlir/CMakeLists.txt
+++ b/mlir/CMakeLists.txt
@@ -22,6 +22,7 @@ endif()
# Must go below project(..)
include(GNUInstallDirs)
+set(CMAKE_CXX_STANDARD 17)
if(MLIR_STANDALONE_BUILD)
find_package(LLVM CONFIG REQUIRED)
More information about the llvm-branch-commits
mailing list