add EIGEN_DEFAULT_TO_ROW_MAJOR cmake option for the tests.

This commit is contained in:
Benoit Jacob 2010-01-27 07:48:48 -05:00
parent 35bacf7cb8
commit dcbf104bcc
2 changed files with 11 additions and 0 deletions

View File

@ -148,6 +148,12 @@ macro(ei_testing_print_summary)
message("Enabled backends: ${EIGEN_TESTED_BACKENDS}")
message("Disabled backends: ${EIGEN_MISSING_BACKENDS}")
if(EIGEN_DEFAULT_TO_ROW_MAJOR)
message("Default order: Row-major")
else()
message("Default order: Column-major")
endif()
if(EIGEN_TEST_SSE2)
message("SSE2: ON")
else()

View File

@ -5,6 +5,11 @@ add_dependencies(check buildtests)
option(EIGEN_SPLIT_LARGE_TESTS "Split large tests into smaller executables" ON)
option(EIGEN_DEFAULT_TO_ROW_MAJOR "Use row-major as default matrix storage order" OFF)
if(EIGEN_DEFAULT_TO_ROW_MAJOR)
add_definitions("-DEIGEN_DEFAULT_TO_ROW_MAJOR")
endif()
find_package(GSL)
if(GSL_FOUND AND GSL_VERSION_MINOR LESS 9)
set(GSL_FOUND "")