mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-03 16:19:41 +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)
|
||||
FIND_PACKAGE(ZLIB)
|
||||
IF (CMAKE_SYSTEM_NAME STREQUAL "AmigaOS")
|
||||
INCLUDE_DIRECTORIES(deps/regex)
|
||||
SET(SRC_REGEX deps/regex/regex.c)
|
||||
ENDIF()
|
||||
ELSE()
|
||||
# Windows doesn't understand POSIX regex on its own
|
||||
ENDIF()
|
||||
|
||||
# Include POSIX regex when it is required
|
||||
IF(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "AmigaOS")
|
||||
INCLUDE_DIRECTORIES(deps/regex)
|
||||
SET(SRC_REGEX deps/regex/regex.c)
|
||||
ENDIF()
|
||||
|
Loading…
Reference in New Issue
Block a user