mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
Use version agnostic FindLua from cmake-3.0.0
This commit is contained in:
parent
4bea4554fb
commit
b0d4f4eb0e
2 changed files with 3 additions and 8 deletions
|
@ -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)
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue