File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,12 @@ ENDIF()
89
89
90
90
IF (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
91
91
OPTION ( USE_OPENSSL "Link with and use openssl library" ON )
92
+ IF (NOT USE_OPENSSL )
93
+ OPTION (USE_MBEDTLS "Link with and use mbedTLS library" ON )
94
+ ENDIF ()
92
95
ENDIF ()
93
96
97
+
94
98
CHECK_STRUCT_HAS_MEMBER ("struct stat" st_mtim "sys/types.h;sys/stat.h"
95
99
HAVE_STRUCT_STAT_ST_MTIM LANGUAGE C )
96
100
CHECK_STRUCT_HAS_MEMBER ("struct stat" st_mtimespec "sys/types.h;sys/stat.h"
@@ -112,10 +116,6 @@ IF (HAVE_STRUCT_STAT_NSEC OR WIN32)
112
116
OPTION ( USE_NSEC "Care about sub-second file mtimes and ctimes" ON )
113
117
ENDIF ()
114
118
115
- IF (NOT USE_OPENSSL )
116
- OPTION ( USE_MBEDTLS "Link with and use mbedTLS library" ON )
117
- ENDIF ()
118
-
119
119
# This variable will contain the libraries we need to put into
120
120
# libgit2.pc's Requires.private. That is, what we're linking to or
121
121
# what someone who's statically linking us needs to link to.
You can’t perform that action at this time.
0 commit comments