1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: Dan Stowell <danstowell@users.sourceforge.net>
Date: Wed, 16 Nov 2016 18:33:12 -0300
Subject: Fix supernova build on x86
---
server/supernova/CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/server/supernova/CMakeLists.txt b/server/supernova/CMakeLists.txt
index 35405b1..5ff5dd9 100644
--- a/server/supernova/CMakeLists.txt
+++ b/server/supernova/CMakeLists.txt
@@ -157,6 +157,10 @@ else()
target_link_libraries(libsupernova boost_system boost_filesystem boost_program_options boost_thread)
endif()
+if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i686")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i686")
+endif()
+
if(CMAKE_COMPILER_IS_GNUCXX)
if( ${_gcc_version} VERSION_GREATER 5 )
target_link_libraries( libsupernova atomic )
|