diff options
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b8c1aa..730b84d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -142,6 +142,15 @@ endif() | |||
142 | if(MSVC) | 142 | if(MSVC) |
143 | add_definitions(-Dinline=__inline) | 143 | add_definitions(-Dinline=__inline) |
144 | message(STATUS "Using [${CMAKE_C_COMPILER_ID}] compiler") | 144 | message(STATUS "Using [${CMAKE_C_COMPILER_ID}] compiler") |
145 | |||
146 | include(TestBigEndian) | ||
147 | TEST_BIG_ENDIAN(HAVE_BIG_ENDIAN) | ||
148 | if(HAVE_BIG_ENDIAN) | ||
149 | add_definitions(-DHAVE_BIG_ENDIAN) | ||
150 | else() | ||
151 | add_definitions(-DHAVE_LITTLE_ENDIAN) | ||
152 | endif() | ||
153 | |||
145 | if(CMAKE_C_COMPILER_ID MATCHES "MSVC" OR CMAKE_C_COMPILER_ID MATCHES "Clang") | 154 | if(CMAKE_C_COMPILER_ID MATCHES "MSVC" OR CMAKE_C_COMPILER_ID MATCHES "Clang") |
146 | set(MSVC_DISABLED_WARNINGS_LIST | 155 | set(MSVC_DISABLED_WARNINGS_LIST |
147 | "C4018" # 'expression' : signed/unsigned mismatch | 156 | "C4018" # 'expression' : signed/unsigned mismatch |