summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-10 21:54:17 +0100
committerMattes D <github@xoft.cz>2014-03-10 21:54:17 +0100
commitb3d0e878b3e85af30a0fe1f4d94cd3aa34c3306e (patch)
treea8ef890a148219ec0a7a5cb0785fbca8fbdcd290 /CMakeLists.txt
parentRevert "Fixed some warnings" (diff)
parentPrepended Travis to env vars (diff)
downloadcuberite-b3d0e878b3e85af30a0fe1f4d94cd3aa34c3306e.tar
cuberite-b3d0e878b3e85af30a0fe1f4d94cd3aa34c3306e.tar.gz
cuberite-b3d0e878b3e85af30a0fe1f4d94cd3aa34c3306e.tar.bz2
cuberite-b3d0e878b3e85af30a0fe1f4d94cd3aa34c3306e.tar.lz
cuberite-b3d0e878b3e85af30a0fe1f4d94cd3aa34c3306e.tar.xz
cuberite-b3d0e878b3e85af30a0fe1f4d94cd3aa34c3306e.tar.zst
cuberite-b3d0e878b3e85af30a0fe1f4d94cd3aa34c3306e.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 05b6d879b..9a860920c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,17 @@ cmake_minimum_required (VERSION 2.6)
# Without this, the MSVC variable isn't defined for MSVC builds ( http://www.cmake.org/pipermail/cmake/2011-November/047130.html )
enable_language(CXX C)
+# These env variables are used for configuring Travis CI builds.
+# See https://github.com/mc-server/MCServer/pull/767
+if(DEFINED ENV{TRAVIS_MCSERVER_BUILD_TYPE})
+ message("Setting build type to $ENV{TRAVIS_MCSERVER_BUILD_TYPE}")
+ set(CMAKE_BUILD_TYPE $ENV{TRAVIS_MCSERVER_BUILD_TYPE})
+endif()
+
+if(DEFINED ENV{TRAVIS_MCSERVER_FORCE32})
+ set(FORCE32 $ENV{TRAVIS_MCSERVER_FORCE32})
+endif()
+
# This has to be done before any flags have been set up.
if(${BUILD_TOOLS})
add_subdirectory(Tools/MCADefrag/)