[Openmp-commits] [PATCH] D149726: [OpenMP] Use CMAKE_CXX_STANDARD for setting the C++ version

Ye Luo via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed May 3 12:07:02 PDT 2023


ye-luo added inline comments.


================
Comment at: openmp/CMakeLists.txt:49
+  set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to conform to")
+  set(CMAKE_CXX_STANDARD_REQUIRED NO)
 else()
----------------
Probably also need CMAKE_CXX_EXTENSIONS=OFF to have exactly -std=c++17, otherwise gnu extension might be on.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149726/new/

https://reviews.llvm.org/D149726



More information about the Openmp-commits mailing list