This commit is contained in:
Christoph Oelckers 2016-01-09 01:24:18 +01:00
commit 52bab6571b

View file

@ -453,17 +453,17 @@ endif( SSE_MATTERS )
if( X64 ) if( X64 )
set( HAVE_MMX 1 ) set( HAVE_MMX 1 )
else( X64 ) else( X64 )
set( SAFE_CMAKE_C_FLAGS ${CMAKE_C_FLAGS} ) set( SAFE_CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} )
if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmmx") set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmmx")
endif( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) endif( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
CHECK_CXX_SOURCE_COMPILES("#include <mmintrin.h> CHECK_CXX_SOURCE_COMPILES("#include <mmintrin.h>
int main(void) { __m64 v = _m_from_int(0); }" int main(void) { __m64 v = _m_from_int(0); }"
HAVE_MMX) HAVE_MMX)
set( CMAKE_C_FLAGS ${SAFE_CMAKE_C_FLAGS} ) set( CMAKE_CXX_FLAGS ${SAFE_CMAKE_CXX_FLAGS} )
endif( X64 ) endif( X64 )
# Set up flags for GCC # Set up flags for GCC