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")