diff options
author | Sebastian Schuberth <sschuberth@gmail.com> | 2016-03-24 14:10:29 +0100 |
---|---|---|
committer | Sebastian Schuberth <sschuberth@gmail.com> | 2016-03-24 14:10:29 +0100 |
commit | 035430b7f353c723e881b3fd92d4057088783eda (patch) | |
tree | 7aa9c210d5c6e16a9be1197f1d66da66cd07b47d | |
parent | 63f7b7f929e178a11954fe9b58eb8fce5c3c5b8b (diff) | |
download | libgit2-035430b7f353c723e881b3fd92d4057088783eda.tar.gz |
CMakeLists: Further improve the error messages regarding CMAKE_SIZEOF_VOID_P
-rw-r--r-- | CMakeLists.txt | 4 |
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 |