diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 57682788dc5..37ef64f22dc 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -20,7 +20,7 @@ endif() set(LLVM_CXX_STD_default "c++14") # Preserve behaviour of legacy cache variables -elseif (LLVM_ENABLE_CXX1Z) +if (LLVM_ENABLE_CXX1Z) set(LLVM_CXX_STD_default "c++1z") endif() set(LLVM_CXX_STD ${LLVM_CXX_STD_default}