Fixed incompatibility with CMake 2.8.7
This commit is contained in:
parent
90ba800e1b
commit
b2f3787db1
@ -6,9 +6,9 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
|||||||
# detect the architecture (note: this test won't work for cross-compilation)
|
# detect the architecture (note: this test won't work for cross-compilation)
|
||||||
include(CheckTypeSize)
|
include(CheckTypeSize)
|
||||||
check_type_size(void* SIZEOF_VOID_PTR)
|
check_type_size(void* SIZEOF_VOID_PTR)
|
||||||
if(${SIZEOF_VOID_PTR} EQUAL "4")
|
if("${SIZEOF_VOID_PTR}" STREQUAL "4")
|
||||||
set(ARCH_32BITS 1)
|
set(ARCH_32BITS 1)
|
||||||
elseif(${SIZEOF_VOID_PTR} EQUAL "8")
|
elseif("${SIZEOF_VOID_PTR}" STREQUAL "8")
|
||||||
set(ARCH_64BITS 1)
|
set(ARCH_64BITS 1)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Unsupported architecture")
|
message(FATAL_ERROR "Unsupported architecture")
|
||||||
|
Loading…
Reference in New Issue
Block a user