summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Walsh <walshy86@gmail.com>2013-02-20 22:23:16 +1000
committerAndrei Karas <akaras@inbox.ru>2013-02-20 15:49:58 +0300
commit37deb731372da40bb9ce5bc4b8d8e19bfc750163 (patch)
treed308646e81bf9f968c00655e0417ea7a39c47045 /src
parent8f084d39f4a5d83cf4ebbea20872b5fc6a141d2e (diff)
downloadmv-37deb731372da40bb9ce5bc4b8d8e19bfc750163.tar.gz
mv-37deb731372da40bb9ce5bc4b8d8e19bfc750163.tar.bz2
mv-37deb731372da40bb9ce5bc4b8d8e19bfc750163.tar.xz
mv-37deb731372da40bb9ce5bc4b8d8e19bfc750163.zip
Fix cmake building on linux Adding the rt library so manaplus can compile on distributions that disallow implicit linking
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index dc8c83047..b32459621 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -42,6 +42,9 @@ ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR BEOS)
ELSEIF (CMAKE_SYSTEM_NAME STREQUAL SunOS)
# explicit linking to libintl is required on Solaris
SET(EXTRA_LIBRARIES intl)
+ELSEIF (CMAKE_SYSTEM_NAME STREQUAL Linux)
+ #some distros need this explicitly linked
+ SET(EXTRA_LIBRARIES rt)
ENDIF()
SET(FLAGS "${FLAGS} -DUSE_MUMBLE")