From d0946cf6b1ebd7c91375a39652c522abf8bf1ba9 Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 30 Jul 2013 09:15:30 +0000 Subject: [PATCH] CMake: *sigh* git-svn-id: https://svn.dealii.org/trunk@30183 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/checks/check_01_cpu_features.cmake | 6 ++++++ 1 file changed, 6 insertions(+) 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." -- 2.39.5