From: Tomasz Buchert 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")