Hi,

May be to include the module before using it:

include (TestBigEndian)




On 13/01/16 15:25, "CMake on behalf of Vania Joloboff" <cmake-boun...@cmake.org 
on behalf of vania.jolob...@inria.fr> wrote:

>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...
>
>
>-- 
>
>Powered by www.kitware.com
>
>Please keep messages on-topic and check the CMake FAQ at: 
>http://www.cmake.org/Wiki/CMake_FAQ
>
>Kitware offers various services to support the CMake community. For more 
>information on each offering, please visit:
>
>CMake Support: http://cmake.org/cmake/help/support.html
>CMake Consulting: http://cmake.org/cmake/help/consulting.html
>CMake Training Courses: http://cmake.org/cmake/help/training.html
>
>Visit other Kitware open-source projects at 
>http://www.kitware.com/opensource/opensource.html
>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/cmake
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to