Skip to content

Commit

Permalink
Disable nanosecond precision in libgit2 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hackhaslam committed Jan 5, 2019
1 parent d156ef6 commit 346e430
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dep/libgit2/CMakeLists.txt
Expand Up @@ -7,7 +7,7 @@ set(STATIC_CRT OFF CACHE BOOL "" FORCE)
set(USE_SSH OFF CACHE BOOL "" FORCE)

if(WIN32)
# Disable search.
# Disable search for OpenSSL.
set(USE_OPENSSL OFF CACHE BOOL "" FORCE)

# Set variables manually.
Expand All @@ -17,6 +17,9 @@ if(WIN32)
${OPENSSL_DIR}/out32dll/libeay32.lib
${OPENSSL_DIR}/out32dll/ssleay32.lib
)

# Disable nanosecond precision.
set(USE_NSEC OFF CACHE BOOL "" FORCE)
endif()

add_subdirectory(libgit2)
Expand Down

0 comments on commit 346e430

Please sign in to comment.