mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-07 11:46:18 +00:00
DRY: Scan for regex.c only in one place
This commit is contained in:
parent
8d45789167
commit
3d007f4f9c
@ -52,12 +52,10 @@ ENDIF()
|
|||||||
|
|
||||||
IF (NOT WIN32)
|
IF (NOT WIN32)
|
||||||
FIND_PACKAGE(ZLIB)
|
FIND_PACKAGE(ZLIB)
|
||||||
IF (CMAKE_SYSTEM_NAME STREQUAL "AmigaOS")
|
ENDIF()
|
||||||
INCLUDE_DIRECTORIES(deps/regex)
|
|
||||||
SET(SRC_REGEX deps/regex/regex.c)
|
# Include POSIX regex when it is required
|
||||||
ENDIF()
|
IF(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "AmigaOS")
|
||||||
ELSE()
|
|
||||||
# Windows doesn't understand POSIX regex on its own
|
|
||||||
INCLUDE_DIRECTORIES(deps/regex)
|
INCLUDE_DIRECTORIES(deps/regex)
|
||||||
SET(SRC_REGEX deps/regex/regex.c)
|
SET(SRC_REGEX deps/regex/regex.c)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
Loading…
Reference in New Issue
Block a user