diff options
author | James Walsh <walshy86@gmail.com> | 2013-02-20 22:23:16 +1000 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-20 15:49:58 +0300 |
commit | 37deb731372da40bb9ce5bc4b8d8e19bfc750163 (patch) | |
tree | d308646e81bf9f968c00655e0417ea7a39c47045 | |
parent | 8f084d39f4a5d83cf4ebbea20872b5fc6a141d2e (diff) | |
download | manaverse-37deb731372da40bb9ce5bc4b8d8e19bfc750163.tar.gz manaverse-37deb731372da40bb9ce5bc4b8d8e19bfc750163.tar.bz2 manaverse-37deb731372da40bb9ce5bc4b8d8e19bfc750163.tar.xz manaverse-37deb731372da40bb9ce5bc4b8d8e19bfc750163.zip |
Fix cmake building on linux Adding the rt library so manaplus can compile on distributions that disallow implicit linking
-rw-r--r-- | src/CMakeLists.txt | 3 |
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") |