diff --git a/CMakeLists.txt b/CMakeLists.txt index fc7b84c26..f8b518b84 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.0) +cmake_minimum_required(VERSION 3.0.0) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE) if(COMMAND cmake_policy) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 620c2b4b1..d95d9d33c 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -60,8 +60,8 @@ a_find_program(CONVERT_EXECUTABLE convert TRUE) include(FindDoxygen) # pkg-config include(FindPkgConfig) -# lua 5.1 -include(FindLua51) +# lua +include(FindLua) # }}} # {{{ Check if documentation can be build @@ -189,11 +189,6 @@ else() message(STATUS "checking for __builtin_clz -- no") endif() -# Error check -if(NOT LUA51_FOUND AND NOT LUA50_FOUND) # This is a workaround to a cmake bug - message(FATAL_ERROR "lua library not found") -endif() - set(AWESOME_REQUIRED_LDFLAGS ${AWESOME_COMMON_REQUIRED_LDFLAGS} ${AWESOME_REQUIRED_LDFLAGS}