summaryrefslogtreecommitdiff
path: root/src/cmake_config.h.in
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-01-18 15:05:29 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-01-18 15:05:29 +0200
commit3ef2629e847e1e7e239068bbf17bebd6d4ebfc95 (patch)
treed540c1068747ce73862237d80d6d04b15fa58eac /src/cmake_config.h.in
parent515a480d0e82fe77f1aae8115e81d720d7d1775b (diff)
downloadminetest-3ef2629e847e1e7e239068bbf17bebd6d4ebfc95.tar.gz
minetest-3ef2629e847e1e7e239068bbf17bebd6d4ebfc95.tar.bz2
minetest-3ef2629e847e1e7e239068bbf17bebd6d4ebfc95.zip
made old build system to work too. the cmake one doesn't make working binaries for some computers.
--HG-- rename : src/config.h.in => src/cmake_config.h.in
Diffstat (limited to 'src/cmake_config.h.in')
-rw-r--r--src/cmake_config.h.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cmake_config.h.in b/src/cmake_config.h.in
new file mode 100644
index 000000000..8635b4f28
--- /dev/null
+++ b/src/cmake_config.h.in
@@ -0,0 +1,16 @@
+// Filled in by the build system
+
+#ifndef CMAKE_CONFIG_H
+#define CMAKE_CONFIG_H
+
+#define INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
+#define VERSION_STRING "@VERSION_STRING@"
+#ifdef NDEBUG
+ #define BUILD_TYPE "Release"
+#else
+ #define BUILD_TYPE "Debug"
+#endif
+#define BUILD_INFO "VER="VERSION_STRING" BUILD_DATE=@BUILD_DATE@ RUN_IN_PLACE=@RUN_IN_PLACE@ INSTALL_PREFIX=@CMAKE_INSTALL_PREFIX@ BUILD_TYPE="BUILD_TYPE
+
+#endif
+