summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Schuberth <sschuberth@gmail.com>2015-10-07 10:31:07 +0200
committerSebastian Schuberth <sschuberth@gmail.com>2015-12-02 14:50:25 +0100
commit0878ca9b7c0e8269f83437956189b9920722afdd (patch)
tree39a5ef7e4901efe12561e6bbd93392a9b5cfc095
parent15e6a5afb9217b09e60cd0aef48e0a7781f3922f (diff)
downloadlibgit2-0878ca9b7c0e8269f83437956189b9920722afdd.tar.gz
CMakeLists: Compare CMAKE_SIZEOF_VOID_P as a number, not as a string
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0b7a03c67..40a52bc01 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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")