mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 17:17:08 +00:00
Merge pull request #3708 from sschuberth/master
CMakeLists: Further improve the error messages regarding CMAKE_SIZEOF_VOID_P
This commit is contained in:
commit
e89abec69f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user