Commit 707ede86335850a97aa1ec5aad9539dfa2e87b9c

Sebastian Bauer 2013-01-04T03:25:05

Compile regexp dependency when AMIGA is defined. Before it was compiled when CMake was actually run on AmigaOS.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e8eb46e..8dd4f07 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()