extend ctest script for SSSE3 and above

This commit is contained in:
Gael Guennebaud 2011-02-03 18:04:43 +01:00
parent 5887a086cf
commit aee4e950d3

View File

@ -209,6 +209,12 @@ if(DEFINED EIGEN_EXPLICIT_VECTORIZATION)
set(CTEST_CMAKE_COMMAND "${CTEST_CMAKE_COMMAND} -DEIGEN_TEST_SSE2=ON")
elseif(EIGEN_EXPLICIT_VECTORIZATION MATCHES SSE3)
set(CTEST_CMAKE_COMMAND "${CTEST_CMAKE_COMMAND} -DEIGEN_TEST_SSE2=ON -DEIGEN_TEST_SSE3=ON")
elseif(EIGEN_EXPLICIT_VECTORIZATION MATCHES SSSE3)
set(CTEST_CMAKE_COMMAND "${CTEST_CMAKE_COMMAND} -DEIGEN_TEST_SSE2=ON -DEIGEN_TEST_SSE3=ON -DEIGEN_TEST_SSSE3=ON")
elseif(EIGEN_EXPLICIT_VECTORIZATION MATCHES SSE4_1)
set(CTEST_CMAKE_COMMAND "${CTEST_CMAKE_COMMAND} -DEIGEN_TEST_SSE2=ON -DEIGEN_TEST_SSE3=ON -DEIGEN_TEST_SSSE3=ON -DEIGEN_TEST_SSE4_1=ON")
elseif(EIGEN_EXPLICIT_VECTORIZATION MATCHES SSE4_2)
set(CTEST_CMAKE_COMMAND "${CTEST_CMAKE_COMMAND} -DEIGEN_TEST_SSE2=ON -DEIGEN_TEST_SSE3=ON -DEIGEN_TEST_SSSE3=ON -DEIGEN_TEST_SSE4_1=ON -DEIGEN_TEST_SSE4_2=ON")
elseif(EIGEN_EXPLICIT_VECTORIZATION MATCHES Altivec)
set(CTEST_CMAKE_COMMAND "${CTEST_CMAKE_COMMAND} -DEIGEN_TEST_ALTIVEC=ON")
elseif(EIGEN_EXPLICIT_VECTORIZATION MATCHES novec)