From 37deb731372da40bb9ce5bc4b8d8e19bfc750163 Mon Sep 17 00:00:00 2001 From: James Walsh Date: Wed, 20 Feb 2013 22:23:16 +1000 Subject: Fix cmake building on linux Adding the rt library so manaplus can compile on distributions that disallow implicit linking --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/CMakeLists.txt') 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") -- cgit v1.2.3-60-g2f50