File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -453,8 +453,9 @@ ENDIF()
453453
454454# Include POSIX regex when it is required
455455IF (WIN32 OR AMIGA OR CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)" )
456- LIST (APPEND LBIGIT2_INCLUDES "${CMAKE_SOURCE_DIR} /deps/regex" )
457- SET (SRC_REGEX "${CMAKE_SOURCE_DIR} /deps/regex/regex.c" )
456+ ADD_SUBDIRECTORY ("${CMAKE_SOURCE_DIR} /deps/regex" "${CMAKE_BINARY_DIR} /deps/regex" )
457+ LIST (APPEND LIBGIT2_INCLUDES "${CMAKE_SOURCE_DIR} /deps/regex" )
458+ LIST (APPEND LIBGIT2_LIBS regex )
458459ENDIF ()
459460
460461# Optional external dependency: http-parser
@@ -599,7 +600,7 @@ ENDIF()
599600
600601CONFIGURE_FILE (src/features.h.in git2/sys/features.h)
601602
602- SET (GIT2INTERNAL_OBJECTS ${SRC_H} ${SRC_GIT2} ${SRC_OS} ${SRC_ZLIB} ${SRC_HTTP} ${SRC_REGEX} ${ SRC_SSH} ${SRC_SHA1} )
603+ SET (GIT2INTERNAL_OBJECTS ${SRC_H} ${SRC_GIT2} ${SRC_OS} ${SRC_ZLIB} ${SRC_HTTP} ${SRC_SSH} ${SRC_SHA1} )
603604
604605LIST (APPEND LIBGIT2_INCLUDES ${CMAKE_CURRENT_BINARY_DIR} "${CMAKE_SOURCE_DIR} /src" "${CMAKE_SOURCE_DIR} /include" )
605606
Original file line number Diff line number Diff line change 1+ INCLUDE_DIRECTORIES ("." )
2+ ADD_LIBRARY (regex STATIC "regex.c" "regex.h" )
You can’t perform that action at this time.
0 commit comments