From: maier Date: Tue, 30 Jul 2013 09:15:30 +0000 (+0000) Subject: CMake: *sigh* X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0946cf6b1ebd7c91375a39652c522abf8bf1ba9;p=dealii-svn.git CMake: *sigh* git-svn-id: https://svn.dealii.org/trunk@30183 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/checks/check_01_cpu_features.cmake b/deal.II/cmake/checks/check_01_cpu_features.cmake index 79a5a661b7..d83f4494c8 100644 --- a/deal.II/cmake/checks/check_01_cpu_features.cmake +++ b/deal.II/cmake/checks/check_01_cpu_features.cmake @@ -40,8 +40,14 @@ # Determine the Endianess of the platform: # IF(CMAKE_C_COMPILER_WORKS) + SET(CMAKE_REQUIRED_FLAGS) + SET(CMAKE_REQUIRED_INCLUDES) + SET(CMAKE_REQUIRED_LIBRARIES) + INCLUDE(TestBigEndian) TEST_BIG_ENDIAN(DEAL_II_WORDS_BIGENDIAN) + + RESET_CMAKE_REQUIRED() ELSE() MESSAGE(STATUS "No suitable C compiler was found! Assuming little endian platform."