need msse4.1 for gnu to build now

git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@5627 e5b18d87-469d-4833-9cc0-8cdfa06e9491
This commit is contained in:
Jeremy McMinis 2012-11-25 15:47:08 +00:00
parent 7839477a3c
commit 4d31457f1b
1 changed files with 10 additions and 0 deletions

View File

@ -39,8 +39,18 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse3")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse3")
ENDIF(GNU_CC_FLAGS)
SET(CMAKE_TRY_GNU_CC_FLAGS "-msse4.1")
CHECK_C_COMPILER_FLAG(${CMAKE_TRY_GNU_CC_FLAGS} GNU_CC_FLAGS)
IF(GNU_CC_FLAGS)
SET(HAVE_SSE3 1)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.1")
ENDIF(GNU_CC_FLAGS)
ENDIF(HAVE_POSIX_MEMALIGN)
# SET(CMAKE_CXX_FLAGS "-O6 -ftemplate-depth-60 -Drestrict=__restrict__ -fstrict-aliasing -funroll-all-loops -finline-limit=1000 -ffast-math -Wno-deprecated -pg")
# SET(CMAKE_CXX_FLAGS "-g -ftemplate-depth-60 -Drestrict=__restrict__ -fstrict-aliasing -Wno-deprecated")