Commit 3d007f4f by Sascha Cunz

DRY: Scan for regex.c only in one place

parent 8d457891
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment