From f38c8c9f630992f7866d844dc839d66d0095ec15 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 23 Dec 2011 04:51:44 +0000 Subject: [PATCH] - bugfixes to build on debians multi-platform build system --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 64584d3e7..3401581cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,6 +55,8 @@ if (NOT ${XVFB_RUN} MATCHES "XVFB_RUN-NOTFOUND") message(STATUS "Using xvfb-run to run man2help.") endif() +include(${CMAKE_SOURCE_DIR}/mk/cmake/Modules/SpecialMacros.cmake) +special_check_for_sse( 1 ) ## Compiler flags IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW) @@ -74,9 +76,11 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW) # For gcc warning options see: http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html IF(NOT MINGW) # For tons of verbose warnings add: -Wall - ADD_DEFINITIONS("-Wreturn-type -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse -rdynamic") +# ADD_DEFINITIONS("-Wreturn-type -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse -rdynamic") + ADD_DEFINITIONS("-Wreturn-type -fno-strict-aliasing -frounding-math -fsignaling-nans -rdynamic") ELSE() - ADD_DEFINITIONS("-Wreturn-type -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse -DUNICODE") +# ADD_DEFINITIONS("-Wreturn-type -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse -DUNICODE") + ADD_DEFINITIONS("-Wreturn-type -fno-strict-aliasing -frounding-math -fsignaling-nans -DUNICODE") ENDIF() #SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")