Fixes build issue with LLVM on Windows with cmake (#10776)

LLVM fails to build on Windows with C++ 20 standard.  When building LLVM
on Windows, we use C++ 14 already.  This commit changes the c++ standard
to be picked by each subdirectory rather than the standard being picked
by the root level cmake file.
This commit is contained in:
Justin Lewis
2021-08-31 05:07:49 -05:00
committed by GitHub
parent 1e108d97b2
commit ae491f04a1
3 changed files with 4 additions and 1 deletions
-1
View File
@@ -26,7 +26,6 @@ option(USE_PRECOMPILED_HEADERS "Use precompiled headers" OFF)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/buildfiles/cmake")
set(CMAKE_CXX_STANDARD 20)
include(CheckCXXCompilerFlag)
if(NOT CMAKE_BUILD_TYPE)