equal
deleted
inserted
replaced
|
1 #.rst: |
|
2 # TestBigEndian |
|
3 # ------------- |
|
4 # |
|
5 # The TestBigEndian.cmake module that ships with CMake, which |
|
6 # checks if the system is big endian or little endian, assumes |
|
7 # that a binary is produced that will have bytes that correspond to the |
|
8 # endianness on the target system. Since emscripten produces Javascript, we |
|
9 # override the default behavior and always return little endian. |
|
10 # |
|
11 # :: |
|
12 # |
|
13 # TEST_BIG_ENDIAN(VARIABLE) |
|
14 # VARIABLE - variable to store the result to |
|
15 #============================================================================= |
|
16 # Copyright 2002-2009 Kitware, Inc. |
|
17 # |
|
18 # Distributed under the OSI-approved BSD License (the "License"); |
|
19 # see accompanying file Copyright.txt for details. |
|
20 # |
|
21 # This software is distributed WITHOUT ANY WARRANTY; without even the |
|
22 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
23 # See the License for more information. |
|
24 #============================================================================= |
|
25 # (To distribute this file outside of CMake, substitute the full |
|
26 # License text for the above reference.) |
|
27 |
|
28 function(TEST_BIG_ENDIAN VARIABLE) |
|
29 set(${VARIABLE} 0 CACHE INTERNAL "Result of TEST_BIG_ENDIAN" FORCE) |
|
30 endfunction() |