Remove profiler.h include where it's not needed. Remove some unreachable and very...
[oweals/minetest.git] / CMakeLists.txt
index 639c070777229f03746650beac31aebdd69362ff..82073c7f27c997a2730d0c47e33a13c9c92dec5c 100644 (file)
@@ -16,11 +16,13 @@ set(VERSION_MINOR 4)
 set(VERSION_PATCH 12)
 set(VERSION_EXTRA "" CACHE STRING "Stuff to append to version string")
 
+# Change to false for releases
+set(DEVELOPMENT_BUILD TRUE)
+
 set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
 if(VERSION_EXTRA)
        set(VERSION_STRING ${VERSION_STRING}-${VERSION_EXTRA})
-else()
-       # Comment the following line during release
+elseif(DEVELOPMENT_BUILD)
        set(VERSION_STRING "${VERSION_STRING}-dev")
 endif()
 
@@ -52,7 +54,7 @@ endif()
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
 
 
-# This is done here so that relative search paths are more reasnable
+# This is done here so that relative search paths are more reasonable
 find_package(Irrlicht)