summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Dziwiński <piotrdz@gmail.com>2013-10-26 09:21:03 -0700
committerPiotr Dziwiński <piotrdz@gmail.com>2013-10-26 09:21:03 -0700
commit19a7196b6131c418ecee72525939c43f37fc49d9 (patch)
treef783e7ed6dc373d603ddeef612db2e7f82290d94
parent7fb83068edab0212e17cf3c059705de9d2d43ca1 (diff)
parent9ddb034bfa3416d64e298022bf594b4481261fae (diff)
downloadcolobot-19a7196b6131c418ecee72525939c43f37fc49d9.tar.gz
colobot-19a7196b6131c418ecee72525939c43f37fc49d9.tar.bz2
colobot-19a7196b6131c418ecee72525939c43f37fc49d9.zip
Merge pull request #242 from OdyX/dev-macosx
Mac OSX (Darwin) build support
-rw-r--r--src/app/main.cpp1
-rw-r--r--test/unit/CMakeLists.txt3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 5c0afd3..1e70beb 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -28,6 +28,7 @@
#include "common/misc.h"
#include "common/restext.h"
+#include <SDL.h>
/* Doxygen main page */
diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt
index 34570a6..1f5e1bc 100644
--- a/test/unit/CMakeLists.txt
+++ b/test/unit/CMakeLists.txt
@@ -10,7 +10,8 @@ elseif(PLATFORM_LINUX)
# for clock_gettime
set(PLATFORM_LIBS "-lrt -lX11")
elseif(PLATFORM_MACOSX)
- set(PLATFORM_LIBS ${X11_X11_LIB})
+ find_library(LIBINTL_LIBRARY NAMES intl libintl )
+ set(PLATFORM_LIBS ${LIBINTL_LIBRARY} ${X11_X11_LIB})
endif()