1
0

Added support to overide CMake build type with env vars

This commit is contained in:
Tycho 2014-03-07 11:23:28 -08:00
parent 51c1849762
commit 72697cfb4f

View File

@ -9,6 +9,14 @@ include_directories (SYSTEM "${PROJECT_SOURCE_DIR}/../lib/polarssl/include")
set(FOLDERS OSSupport HTTPServer Items Blocks Protocol Generating)
set(FOLDERS ${FOLDERS} WorldStorage Mobs Entities Simulator UI BlockEntities)
if(DEFINED ENV{MCSERVER_BUILD_TYPE})
message("Setting build type to $ENV{MCSERVER_BUILD_TYPE}")
set(CMAKE_BUILD_TYPE $ENV{MCSERVER_BUILD_TYPE})
endif()
if(DEFINED ENV{MCSERVER_FORCE32})
set(FORCE32 $ENV{MCSERVER_FORCE32})
endif()
if (NOT MSVC)