From b2f3787db1ac3b0ffa76da123570f66ed75cdacb Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Fri, 30 Mar 2012 20:53:16 +0200 Subject: [PATCH] Fixed incompatibility with CMake 2.8.7 --- cmake/Config.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Config.cmake b/cmake/Config.cmake index a1c626408..7fed4ac4a 100644 --- a/cmake/Config.cmake +++ b/cmake/Config.cmake @@ -6,9 +6,9 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") # detect the architecture (note: this test won't work for cross-compilation) include(CheckTypeSize) check_type_size(void* SIZEOF_VOID_PTR) - if(${SIZEOF_VOID_PTR} EQUAL "4") + if("${SIZEOF_VOID_PTR}" STREQUAL "4") set(ARCH_32BITS 1) - elseif(${SIZEOF_VOID_PTR} EQUAL "8") + elseif("${SIZEOF_VOID_PTR}" STREQUAL "8") set(ARCH_64BITS 1) else() message(FATAL_ERROR "Unsupported architecture")