aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorEric Mountain <eric.stephen.mountain@gmail.com>2016-09-14 05:05:21 +0200
committerkwolekr <kwolekr@minetest.net>2016-09-13 23:05:21 -0400
commit9dd22aebc7443f1bd678a649a97f504a3b816906 (patch)
tree48dd0cbc7e820f12a091d68912ecb844321af70f /src/CMakeLists.txt
parentd83bcf2c50af3fec37ac8d202064bd2ad92a6d8e (diff)
downloadminetest-9dd22aebc7443f1bd678a649a97f504a3b816906.tar.gz
minetest-9dd22aebc7443f1bd678a649a97f504a3b816906.tar.bz2
minetest-9dd22aebc7443f1bd678a649a97f504a3b816906.zip
Fix "unknown CMake command "check_library_exists" (#4517)
Adds CMakeLists.txt include to fix this issue: $ cmake . -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE \ -DCMAKE_BUILD_TYPE=Release -DENABLE_CURL=TRUE -DENABLE_CURSES=FALSE \ -DENABLE_FREETYPE=TRUE -DENABLE_GETTEXT=FALSE \ -DENABLE_POSTGRESQL=FALSE -DENABLE_SOUND=FALSE -DENABLE_LUAJIT=TRUE \ -DIRRLICHT_SOURCE_DIR=$HOME/irrlicht-1.8.4 -LH ... CMake Error at src/CMakeLists.txt:339 (check_library_exists): Unknown CMake command "check_library_exists". ...
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index bcd7a5984..608437f3a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.6)
project(minetest)
INCLUDE(CheckIncludeFiles)
+INCLUDE(CheckLibraryExists)
# Add custom SemiDebug build mode
set(CMAKE_CXX_FLAGS_SEMIDEBUG "-O1 -g -Wall -Wabi" CACHE STRING