From 1b1dbb9158e2dfb6814517583de9015c94f28b1a Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 20 Feb 2014 14:34:47 +0100 Subject: [PATCH] memaccess.cmake: Cosmetics, whitespace, consistency fixes. Match the rest of PulseView's CMake file conventions more closely. --- CMake/memaccess.cmake | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CMake/memaccess.cmake b/CMake/memaccess.cmake index 9fd62f94..a4a05f94 100644 --- a/CMake/memaccess.cmake +++ b/CMake/memaccess.cmake @@ -19,8 +19,8 @@ include(CheckCSourceRuns) -function (memaccess_check_unaligned_le _var) -IF (NOT CMAKE_CROSSCOMPILING) +function(memaccess_check_unaligned_le _var) +if(NOT CMAKE_CROSSCOMPILING) CHECK_C_SOURCE_RUNS(" #include int main() { @@ -28,14 +28,14 @@ int main() { union { uint64_t u64; uint8_t u8[16]; } d; uint64_t v; for (i=0; i<16; i++) - d.u8[i] = i; + d.u8[i] = i; v = *(uint64_t *)(d.u8+1); if (v != 0x0807060504030201ULL) return 1; return 0; }" ${_var}) -ENDIF (NOT CMAKE_CROSSCOMPILING) -IF (CMAKE_CROSSCOMPILING) - MESSAGE(WARNING "Cross compiling - using portable code for memory access") -ENDIF (CMAKE_CROSSCOMPILING) +endif() +if(CMAKE_CROSSCOMPILING) + message(WARNING "Cross compiling - using portable code for memory access") +endif() endfunction() -- 2.30.2