projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36d564c
)
Detect big-endianess and write it out to config.h
author
Tim Goya
<tuxdev103@gmail.com>
Sat, 3 Nov 2007 15:18:15 +0000
(15:18 +0000)
committer
Tim Goya
<tuxdev103@gmail.com>
Sat, 3 Nov 2007 15:18:15 +0000
(15:18 +0000)
SVN-Revision: 5172
CMakeLists.txt
patch
|
blob
|
history
config.h.cmake
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
03a2415
..
945b47d
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-59,6
+59,11
@@
OPTION(GENERATE_WRAPPER "Build miniswig and generate the wrapper" ${DEBUG})
set(CMAKE_MODULE_PATH ${SUPERTUX_SOURCE_DIR}/mk/cmake ${CMAKE_MODULE_PATH})
+## Check endianess
+
+INCLUDE(TestBigEndian)
+TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
+
## Add lots of dependencies to compiler switches
FIND_PACKAGE(SDL REQUIRED)
diff --git
a/config.h.cmake
b/config.h.cmake
index
28cd9e2
..
4d3d1cd
100644
(file)
--- a/
config.h.cmake
+++ b/
config.h.cmake
@@
-19,4
+19,6
@@
#define ICONV_CONST
#endif
+#cmakedefine WORDS_BIGENDIAN
+
#cmakedefine HAVE_OPENGL