mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 19:36:05 +00:00
repair standalone clang builds
Add missing C++ language standard setup for clang standalone build. Patch by Michele Scandale! Differential Revision: https://reviews.llvm.org/D83426
This commit is contained in:
parent
a474d5bae4
commit
aa7a5ad56b
@ -9,6 +9,10 @@ endif()
|
|||||||
if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
|
if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
|
||||||
project(Clang)
|
project(Clang)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to")
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
||||||
|
set(CMAKE_CXX_EXTENSIONS NO)
|
||||||
|
|
||||||
# Rely on llvm-config.
|
# Rely on llvm-config.
|
||||||
set(CONFIG_OUTPUT)
|
set(CONFIG_OUTPUT)
|
||||||
if(LLVM_CONFIG)
|
if(LLVM_CONFIG)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user