]> git.proxmox.com Git - libgit2.git/commitdiff
CMakeLists: Compare CMAKE_SIZEOF_VOID_P as a number, not as a string
authorSebastian Schuberth <sschuberth@gmail.com>
Wed, 7 Oct 2015 08:31:07 +0000 (10:31 +0200)
committerSebastian Schuberth <sschuberth@gmail.com>
Wed, 2 Dec 2015 13:50:25 +0000 (14:50 +0100)
CMakeLists.txt

index 0b7a03c67de892b354b4fe43f4191424314c642e..40a52bc01a12d8dcc21168c2a178a99d3a3722ec 100644 (file)
@@ -235,7 +235,7 @@ IF (WIN32 AND WINHTTP)
                SET(LIBWINHTTP_PATH "${CMAKE_CURRENT_BINARY_DIR}/deps/winhttp")
                FILE(MAKE_DIRECTORY ${LIBWINHTTP_PATH})
 
-               IF ("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
+               IF (CMAKE_SIZEOF_VOID_P EQUAL 8)
                        set(WINHTTP_DEF "${CMAKE_CURRENT_SOURCE_DIR}/deps/winhttp/winhttp64.def")
                ELSE()
                        set(WINHTTP_DEF "${CMAKE_CURRENT_SOURCE_DIR}/deps/winhttp/winhttp.def")