[CMake] test endian ness
Vania Joloboff
vania.joloboff at inria.fr
Wed Jan 13 09:25:19 EST 2016
Hi
I am familiar with autoconf and trying to migrate our project to cmake.
Thus newbie. I am running cmake 3.2.2 on Linux Mint 17
I have seen in the documentation the macro
https://cmake.org/cmake/help/v3.2/module/TestBigEndian.html?highlight=endian#module:TestBigEndian
which seems very convenient for our purpose.
I have added to my CMakeLists.txt
TEST_BIG_ENDIAN(HOST_IS_BIG_ENDIAN)
But when I run
> cmake -G "Unix Makefiles"
I get
CMake Error at CMakeLists.txt:11 (TEST_BIG_ENDIAN):
Unknown CMake command "TEST_BIG_ENDIAN".
What am I missing ?
Thanks for clues...
More information about the CMake
mailing list