Skip to content

Commit 4085bda

Browse files
committed
Fail build on LLVM < 8.0; warn user on LLVM < 10.0
1 parent 40e12d9 commit 4085bda

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ if (NOT DEFINED LLVM_VERSION_MAJOR)
1414
set (CMAKE_CXX_STANDARD 14)
1515
endif()
1616

17+
if(LLVM_VERSION_MAJOR LESS 8)
18+
message(FATAL_ERROR "This project isn't buldable with LLVM < 8.0.0.")
19+
elseif(LLVM_VERSION_MAJOR LESS 10)
20+
message(WARNING "Building with LLVM < 10.0.0 is at your own risk.")
21+
endif()
22+
1723
add_subdirectory(lib)
1824
add_subdirectory(tools)
1925

0 commit comments

Comments
 (0)