Commit b328a3d9 authored by Tomasz Buchert's avatar Tomasz Buchert

Fix build problems on non-x86 archs (Closes: #755445)

parent ac409c8c
From: Tomasz Buchert <tomasz.buchert@inria.fr>
Date: Sun, 20 Jul 2014 13:17:20 +0200
Subject: Don't use -mno-ms-bitfields
-mno-ms-bittfields exists only on x86/x64 architectures.
It makes the build process fail on more exotic
architectures, however it is not even needed there.
---
CMakeLists.txt | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4cb5f63..d3f76da 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-
+
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)
########### Project name ###########
@@ -41,7 +41,9 @@ ENDIF()
IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
# The stars structs rely on gnu gcc packing of bit-fields.
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mno-ms-bitfields")
+ IF(WIN32)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mno-ms-bitfields")
+ ENDIF()
SET(GCC_VERSION "${CMAKE_CXX_COMPILER_VERSION}")
ELSE()
SET(GCC_VERSION "0.0")
0001-Don-t-use-mno-ms-bitfields.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment