]> git.proxmox.com Git - libgit2.git/commitdiff
CMakeLists: Further improve the error messages regarding CMAKE_SIZEOF_VOID_P
authorSebastian Schuberth <sschuberth@gmail.com>
Thu, 24 Mar 2016 13:10:29 +0000 (14:10 +0100)
committerSebastian Schuberth <sschuberth@gmail.com>
Thu, 24 Mar 2016 13:10:29 +0000 (14:10 +0100)
CMakeLists.txt

index 1b6a7255053ac04c48c914f35f629d1e3931bebb..17b5fba7bfd7642d4123d0d9f7747dbd05ae0713 100644 (file)
@@ -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