1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: Tim Blechmann <tim@klingt.org>
Date: Sun, 6 Sep 2015 10:12:46 +0200
Subject: supernova: gcc-5 compile fix
---
server/supernova/CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/server/supernova/CMakeLists.txt b/server/supernova/CMakeLists.txt
index 5ff5dd9..1ef4eda 100644
--- a/server/supernova/CMakeLists.txt
+++ b/server/supernova/CMakeLists.txt
@@ -167,6 +167,10 @@ if(CMAKE_COMPILER_IS_GNUCXX)
endif()
endif()
+if( ${_gcc_version} VERSION_GREATER 5 )
+ target_link_libraries( libsupernova atomic )
+endif()
+
if(WIN32)
target_link_libraries(libsupernova wsock32 ws2_32 winmm)
endif()
|