From 2e1ac41ec1066d5934d9ebe2893516b793d1ebb4 Mon Sep 17 00:00:00 2001 From: Quinton Miller Date: Wed, 17 Jun 2020 17:03:36 +0800 Subject: [PATCH] CI: Fix "use of undeclared identifier 'nullptr'" `CMAKE_CXX_STANDARD_xx` -> `CMAKE_CXX_STANDARD xx` --- clang/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index c7e5036..942cebf 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -18,9 +18,9 @@ message(STATUS "LLVM Major version: ${LLVM_VER}") # If LLVM 10+ change std version if(LLVM_VER GREATER 9) message(STATUS "Setting std version: c++14") - set(CMAKE_CXX_STANDARD_14) + set(CMAKE_CXX_STANDARD 14) else() - set(CMAKE_CXX_STANDARD_11) + set(CMAKE_CXX_STANDARD 11) endif() # Add llvm version definition