summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-03-28 09:50:31 -0400
committerEdward Thomson <ethomson@github.com>2016-03-28 09:50:31 -0400
commite89abec69f114a4480431c74160558b86148af41 (patch)
treee107e82ffd44f95b9535d95ffdd9614eecef3cbd
parent7b29be31c2f03b9c85dd4545f62acd5c95f56e96 (diff)
parent035430b7f353c723e881b3fd92d4057088783eda (diff)
downloadlibgit2-e89abec69f114a4480431c74160558b86148af41.tar.gz
Merge pull request #3708 from sschuberth/master
CMakeLists: Further improve the error messages regarding CMAKE_SIZEOF_VOID_P
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1b6a72550..17b5fba7b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -580,8 +580,10 @@ IF (CMAKE_SIZEOF_VOID_P EQUAL 8)
ADD_DEFINITIONS(-DGIT_ARCH_64)
ELSEIF (CMAKE_SIZEOF_VOID_P EQUAL 4)
ADD_DEFINITIONS(-DGIT_ARCH_32)
-ELSE()
+ELSEIF (CMAKE_SIZEOF_VOID_P)
MESSAGE(FATAL_ERROR "Unsupported architecture (pointer size is ${CMAKE_SIZEOF_VOID_P} bytes)")
+ELSE()
+ MESSAGE(FATAL_ERROR "Unsupported architecture (CMAKE_SIZEOF_VOID_P is unset)")
ENDIF()
# Compile and link libgit2