diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d8a420..ffc718b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -11,6 +11,12 @@ set(CMAKE_BUILD_TYPE Release) | |||
11 | find_package(Lua51 REQUIRED) | 11 | find_package(Lua51 REQUIRED) |
12 | include_directories(${LUA_INCLUDE_DIR}) | 12 | include_directories(${LUA_INCLUDE_DIR}) |
13 | 13 | ||
14 | include(TestBigEndian) | ||
15 | TEST_BIG_ENDIAN(BIG_ENDIAN) | ||
16 | if(HAVE_BIG_ENDIAN) | ||
17 | add_definitions(-DIEEE_BIG_ENDIAN) | ||
18 | endif() | ||
19 | |||
14 | # Handle platforms missing isinf() macro (Eg, some Solaris systems). | 20 | # Handle platforms missing isinf() macro (Eg, some Solaris systems). |
15 | include(CheckSymbolExists) | 21 | include(CheckSymbolExists) |
16 | CHECK_SYMBOL_EXISTS(isinf math.h HAVE_ISINF) | 22 | CHECK_SYMBOL_EXISTS(isinf math.h HAVE_ISINF) |