Remove history option - it's already optional.

This commit is contained in:
Pentarctagon 2021-05-22 16:11:42 -05:00
parent 6bccce4d0f
commit d3c8a09c0c
No known key found for this signature in database
GPG Key ID: 9456BC54A21DBFA0
2 changed files with 3 additions and 6 deletions

View File

@ -50,7 +50,6 @@ option(ENABLE_SERVER "Enable compilation of MP server" ON)
option(ENABLE_MYSQL "Enable building MP/add-ons servers with mysql support" OFF)
option(ENABLE_TESTS "Build unit tests")
option(ENABLE_NLS "Enable building of translations" ${ENABLE_GAME})
option(ENABLE_HISTORY "Enable using GNU history for history in lua console" ON)
set(BOOST_VERSION "1.66")
@ -518,11 +517,9 @@ if(ENABLE_GAME)
unset(LIBDBUS_FOUND CACHE)
endif()
find_package( History )
if(ENABLE_HISTORY AND HISTORY_FOUND)
find_package(History)
if(HISTORY_FOUND)
add_definitions(-DHAVE_HISTORY)
else()
message("Could not find GNU history. Disabling support for command history in lua console.")
endif()
endif()

View File

@ -57,7 +57,7 @@ set(game-external-libs
${VORBISFILE_LIBRARIES}
)
if(ENABLE_HISTORY AND HISTORY_FOUND)
if(HISTORY_FOUND)
set(game-external-libs ${game-external-libs} ${HISTORY_LIBRARY})
endif()