]> git.proxmox.com Git - libgit2.git/commitdiff
Compile regexp dependency when AMIGA is defined.
authorSebastian Bauer <mail@sebastianbauer.info>
Fri, 4 Jan 2013 02:25:05 +0000 (03:25 +0100)
committerSebastian Bauer <mail@sebastianbauer.info>
Thu, 10 Jan 2013 08:19:11 +0000 (09:19 +0100)
Before it was compiled when CMake was actually run on AmigaOS.

CMakeLists.txt

index e8eb46eee40e7961d960a3000c6e2f5b42dc8e8d..8dd4f0749871bc09fa29343e069147f6a5668135 100644 (file)
@@ -106,7 +106,7 @@ ELSE()
 ENDIF()
 
 # Include POSIX regex when it is required
-IF(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "AmigaOS")
+IF(WIN32 OR AMIGA)
        INCLUDE_DIRECTORIES(deps/regex)
        SET(SRC_REGEX deps/regex/regex.c)
 ENDIF()