Skip to content
Permalink
Browse files

build with -fno-strict-aliasing on powerpc (see bugs.debian.org/603986)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15096 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jan 28, 2011
1 parent 93fc059 commit cddc17323067ed4e186a2fcda6581e035d77a380
Showing with 10 additions and 5 deletions.
  1. +10 −5 CMakeLists.txt
@@ -226,6 +226,11 @@ IF (PEDANTIC)
ENDIF (MSVC)
ENDIF (PEDANTIC)

IF(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)")
# spatialite crashes on ppc - see bugs.debian.org/603986
ADD_DEFINITIONS( -fno-strict-aliasing )
ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)")

IF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
MESSAGE (STATUS "Debug output enabled")
ADD_DEFINITIONS(-DQGISDEBUG=1)
@@ -403,13 +408,13 @@ IF (WITH_BINDINGS)
INCLUDE(PyQt4Macros)

# setup SIP variables
separate_arguments(PYQT4_SIP_FLAGS) # convert space separated values to a list
set(SIP_INCLUDES ${PYQT4_SIP_DIR} ${CMAKE_SOURCE_DIR}/python)
set(SIP_CONCAT_PARTS 4)
set(SIP_EXTRA_OPTIONS ${PYQT4_SIP_FLAGS})
SEPARATE_ARGUMENTS(PYQT4_SIP_FLAGS) # convert space separated values to a list
SET(SIP_INCLUDES ${PYQT4_SIP_DIR} ${CMAKE_SOURCE_DIR}/python)
SET(SIP_CONCAT_PARTS 4)
SET(SIP_EXTRA_OPTIONS ${PYQT4_SIP_FLAGS})

IF (NOT BINDINGS_GLOBAL_INSTALL)
set(PYTHON_SITE_PACKAGES_DIR ${QGIS_DATA_DIR}/python)
SET(PYTHON_SITE_PACKAGES_DIR ${QGIS_DATA_DIR}/python)
ENDIF (NOT BINDINGS_GLOBAL_INSTALL)

ENDIF (WITH_BINDINGS)

0 comments on commit cddc173

Please sign in to comment.
You can’t perform that action at this time.