summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Bauer <mail@sebastianbauer.info>2013-01-04 03:25:05 +0100
committerSebastian Bauer <mail@sebastianbauer.info>2013-01-10 09:19:11 +0100
commit707ede86335850a97aa1ec5aad9539dfa2e87b9c (patch)
tree3a9f009542c2b5d4d4bc509104758685753bdee1
parentc57c4af327979ad4189b108eaf751c912c8dea01 (diff)
downloadlibgit2-707ede86335850a97aa1ec5aad9539dfa2e87b9c.tar.gz
Compile regexp dependency when AMIGA is defined.
Before it was compiled when CMake was actually run on AmigaOS.
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e8eb46eee..8dd4f0749 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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()