diff --git a/CMakeLists.txt b/CMakeLists.txt
index a72356b68e591f1dfa14861190ca4f80686f0495..abf90ea10cdf886d81e6010c7e8aa6f72ba4dd05 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,6 @@
-find_package(LLVM REQUIRED CONFIG)
+cmake_minimum_required(VERSION 3.1)
 
+find_package(LLVM REQUIRED CONFIG)
 add_definitions(${LLVM_DEFINITIONS})
 include_directories(${LLVM_INCLUDE_DIRS})
 link_directories(${LLVM_LIBRARY_DIRS})