Switched "MESSAGE(" -> "MESSAGE(STATUS " in CMake script, since otherwise they may look like errors to the user.

This commit is contained in:
Jose Luis Blanco 2010-12-29 22:02:01 +01:00
parent 902af035d3
commit 7feb644620
2 changed files with 62 additions and 62 deletions

View File

@ -118,43 +118,43 @@ if(CMAKE_COMPILER_IS_GNUCXX)
option(EIGEN_TEST_SSE2 "Enable/Disable SSE2 in tests/examples" OFF) option(EIGEN_TEST_SSE2 "Enable/Disable SSE2 in tests/examples" OFF)
if(EIGEN_TEST_SSE2) if(EIGEN_TEST_SSE2)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2")
message("Enabling SSE2 in tests/examples") message(STATUS "Enabling SSE2 in tests/examples")
endif() endif()
option(EIGEN_TEST_SSE3 "Enable/Disable SSE3 in tests/examples" OFF) option(EIGEN_TEST_SSE3 "Enable/Disable SSE3 in tests/examples" OFF)
if(EIGEN_TEST_SSE3) if(EIGEN_TEST_SSE3)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse3") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse3")
message("Enabling SSE3 in tests/examples") message(STATUS "Enabling SSE3 in tests/examples")
endif() endif()
option(EIGEN_TEST_SSSE3 "Enable/Disable SSSE3 in tests/examples" OFF) option(EIGEN_TEST_SSSE3 "Enable/Disable SSSE3 in tests/examples" OFF)
if(EIGEN_TEST_SSSE3) if(EIGEN_TEST_SSSE3)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mssse3") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mssse3")
message("Enabling SSSE3 in tests/examples") message(STATUS "Enabling SSSE3 in tests/examples")
endif() endif()
option(EIGEN_TEST_SSE4_1 "Enable/Disable SSE4.1 in tests/examples" OFF) option(EIGEN_TEST_SSE4_1 "Enable/Disable SSE4.1 in tests/examples" OFF)
if(EIGEN_TEST_SSE4_1) if(EIGEN_TEST_SSE4_1)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1")
message("Enabling SSE4.1 in tests/examples") message(STATUS "Enabling SSE4.1 in tests/examples")
endif() endif()
option(EIGEN_TEST_SSE4_2 "Enable/Disable SSE4.2 in tests/examples" OFF) option(EIGEN_TEST_SSE4_2 "Enable/Disable SSE4.2 in tests/examples" OFF)
if(EIGEN_TEST_SSE4_2) if(EIGEN_TEST_SSE4_2)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.2") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.2")
message("Enabling SSE4.2 in tests/examples") message(STATUS "Enabling SSE4.2 in tests/examples")
endif() endif()
option(EIGEN_TEST_ALTIVEC "Enable/Disable AltiVec in tests/examples" OFF) option(EIGEN_TEST_ALTIVEC "Enable/Disable AltiVec in tests/examples" OFF)
if(EIGEN_TEST_ALTIVEC) if(EIGEN_TEST_ALTIVEC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maltivec -mabi=altivec") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maltivec -mabi=altivec")
message("Enabling AltiVec in tests/examples") message(STATUS "Enabling AltiVec in tests/examples")
endif() endif()
option(EIGEN_TEST_NEON "Enable/Disable Neon in tests/examples" OFF) option(EIGEN_TEST_NEON "Enable/Disable Neon in tests/examples" OFF)
if(EIGEN_TEST_NEON) if(EIGEN_TEST_NEON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a8") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a8")
message("Enabling NEON in tests/examples") message(STATUS "Enabling NEON in tests/examples")
endif() endif()
check_cxx_compiler_flag("-fopenmp" COMPILER_SUPPORT_OPENMP) check_cxx_compiler_flag("-fopenmp" COMPILER_SUPPORT_OPENMP)
@ -162,7 +162,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
option(EIGEN_TEST_OPENMP "Enable/Disable OpenMP in tests/examples" OFF) option(EIGEN_TEST_OPENMP "Enable/Disable OpenMP in tests/examples" OFF)
if(EIGEN_TEST_OPENMP) if(EIGEN_TEST_OPENMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
message("Enabling OpenMP in tests/examples") message(STATUS "Enabling OpenMP in tests/examples")
endif() endif()
endif() endif()
@ -186,7 +186,7 @@ if(MSVC)
option(EIGEN_TEST_OPENMP "Enable/Disable OpenMP in tests/examples" OFF) option(EIGEN_TEST_OPENMP "Enable/Disable OpenMP in tests/examples" OFF)
if(EIGEN_TEST_OPENMP) if(EIGEN_TEST_OPENMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /openmp") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /openmp")
message("Enabling OpenMP in tests/examples") message(STATUS "Enabling OpenMP in tests/examples")
endif() endif()
endif() endif()
@ -196,7 +196,7 @@ if(MSVC)
# arch is not supported on 64 bit systems, SSE is enabled automatically. # arch is not supported on 64 bit systems, SSE is enabled automatically.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2")
endif(NOT CMAKE_CL_64) endif(NOT CMAKE_CL_64)
message("Enabling SSE2 in tests/examples") message(STATUS "Enabling SSE2 in tests/examples")
endif(EIGEN_TEST_SSE2) endif(EIGEN_TEST_SSE2)
endif(MSVC) endif(MSVC)
@ -207,21 +207,21 @@ if(EIGEN_TEST_X87)
set(EIGEN_TEST_NO_EXPLICIT_VECTORIZATION ON) set(EIGEN_TEST_NO_EXPLICIT_VECTORIZATION ON)
if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=387") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=387")
message("Forcing use of x87 instructions in tests/examples") message(STATUS "Forcing use of x87 instructions in tests/examples")
else() else()
message("EIGEN_TEST_X87 ignored on your compiler") message(STATUS "EIGEN_TEST_X87 ignored on your compiler")
endif() endif()
endif() endif()
if(EIGEN_TEST_NO_EXPLICIT_VECTORIZATION) if(EIGEN_TEST_NO_EXPLICIT_VECTORIZATION)
add_definitions(-DEIGEN_DONT_VECTORIZE=1) add_definitions(-DEIGEN_DONT_VECTORIZE=1)
message("Disabling vectorization in tests/examples") message(STATUS "Disabling vectorization in tests/examples")
endif() endif()
option(EIGEN_TEST_NO_EXPLICIT_ALIGNMENT "Disable explicit alignment (hence vectorization) in tests/examples" OFF) option(EIGEN_TEST_NO_EXPLICIT_ALIGNMENT "Disable explicit alignment (hence vectorization) in tests/examples" OFF)
if(EIGEN_TEST_NO_EXPLICIT_ALIGNMENT) if(EIGEN_TEST_NO_EXPLICIT_ALIGNMENT)
add_definitions(-DEIGEN_DONT_ALIGN=1) add_definitions(-DEIGEN_DONT_ALIGN=1)
message("Disabling alignment in tests/examples") message(STATUS "Disabling alignment in tests/examples")
endif() endif()
option(EIGEN_TEST_C++0x "Enables all C++0x features." OFF) option(EIGEN_TEST_C++0x "Enables all C++0x features." OFF)
@ -307,30 +307,30 @@ endif(EIGEN_BUILD_BTL)
ei_testing_print_summary() ei_testing_print_summary()
message("") message(STATUS "")
message("Configured Eigen ${EIGEN_VERSION_NUMBER}") message(STATUS "Configured Eigen ${EIGEN_VERSION_NUMBER}")
message("") message(STATUS "")
string(TOLOWER "${CMAKE_GENERATOR}" cmake_generator_tolower) string(TOLOWER "${CMAKE_GENERATOR}" cmake_generator_tolower)
if(cmake_generator_tolower MATCHES "makefile") if(cmake_generator_tolower MATCHES "makefile")
message("Some things you can do now:") message(STATUS "Some things you can do now:")
message("--------------+----------------------------------------------------------------") message(STATUS "--------------+----------------------------------------------------------------")
message("Command | Description") message(STATUS "Command | Description")
message("--------------+----------------------------------------------------------------") message(STATUS "--------------+----------------------------------------------------------------")
message("make install | Install to ${CMAKE_INSTALL_PREFIX}. To change that:") message(STATUS "make install | Install to ${CMAKE_INSTALL_PREFIX}. To change that:")
message(" | cmake . -DCMAKE_INSTALL_PREFIX=yourpath") message(STATUS " | cmake . -DCMAKE_INSTALL_PREFIX=yourpath")
message(" | Eigen headers will then be installed to:") message(STATUS " | Eigen headers will then be installed to:")
message(" | ${INCLUDE_INSTALL_DIR}") message(STATUS " | ${INCLUDE_INSTALL_DIR}")
message(" | To install Eigen headers to a separate location, do:") message(STATUS " | To install Eigen headers to a separate location, do:")
message(" | cmake . -DEIGEN_INCLUDE_INSTALL_DIR=yourpath") message(STATUS " | cmake . -DEIGEN_INCLUDE_INSTALL_DIR=yourpath")
message("make doc | Generate the API documentation, requires Doxygen & LaTeX") message(STATUS "make doc | Generate the API documentation, requires Doxygen & LaTeX")
message("make check | Build and run the unit-tests. Read this page:") message(STATUS "make check | Build and run the unit-tests. Read this page:")
message(" | http://eigen.tuxfamily.org/index.php?title=Tests") message(STATUS " | http://eigen.tuxfamily.org/index.php?title=Tests")
message("make blas | Build BLAS library (not the same thing as Eigen)") message(STATUS "make blas | Build BLAS library (not the same thing as Eigen)")
message("--------------+----------------------------------------------------------------") message(STATUS "--------------+----------------------------------------------------------------")
else() else()
message("To build/run the unit tests, read this page:") message(STATUS "To build/run the unit tests, read this page:")
message(" http://eigen.tuxfamily.org/index.php?title=Tests") message(STATUS " http://eigen.tuxfamily.org/index.php?title=Tests")
endif() endif()
message("") message(STATUS "")

View File

@ -135,76 +135,76 @@ endmacro(ei_add_test)
# print a summary of the different options # print a summary of the different options
macro(ei_testing_print_summary) macro(ei_testing_print_summary)
message("************************************************************") message(STATUS "************************************************************")
message("*** Eigen's unit tests configuration summary ***") message(STATUS "*** Eigen's unit tests configuration summary ***")
message("************************************************************") message(STATUS "************************************************************")
message("") message(STATUS "")
message("Build type: ${CMAKE_BUILD_TYPE}") message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
get_property(EIGEN_TESTING_SUMMARY GLOBAL PROPERTY EIGEN_TESTING_SUMMARY) get_property(EIGEN_TESTING_SUMMARY GLOBAL PROPERTY EIGEN_TESTING_SUMMARY)
get_property(EIGEN_TESTED_BACKENDS GLOBAL PROPERTY EIGEN_TESTED_BACKENDS) get_property(EIGEN_TESTED_BACKENDS GLOBAL PROPERTY EIGEN_TESTED_BACKENDS)
get_property(EIGEN_MISSING_BACKENDS GLOBAL PROPERTY EIGEN_MISSING_BACKENDS) get_property(EIGEN_MISSING_BACKENDS GLOBAL PROPERTY EIGEN_MISSING_BACKENDS)
message("Enabled backends: ${EIGEN_TESTED_BACKENDS}") message(STATUS "Enabled backends: ${EIGEN_TESTED_BACKENDS}")
message("Disabled backends: ${EIGEN_MISSING_BACKENDS}") message(STATUS "Disabled backends: ${EIGEN_MISSING_BACKENDS}")
if(EIGEN_DEFAULT_TO_ROW_MAJOR) if(EIGEN_DEFAULT_TO_ROW_MAJOR)
message("Default order: Row-major") message(STATUS "Default order: Row-major")
else() else()
message("Default order: Column-major") message(STATUS "Default order: Column-major")
endif() endif()
if(EIGEN_TEST_NO_EXPLICIT_ALIGNMENT) if(EIGEN_TEST_NO_EXPLICIT_ALIGNMENT)
message("Explicit alignment (hence vectorization) disabled") message(STATUS "Explicit alignment (hence vectorization) disabled")
elseif(EIGEN_TEST_NO_EXPLICIT_VECTORIZATION) elseif(EIGEN_TEST_NO_EXPLICIT_VECTORIZATION)
message("Explicit vectorization disabled (alignment kept enabled)") message(STATUS "Explicit vectorization disabled (alignment kept enabled)")
else() else()
if(EIGEN_TEST_SSE2) if(EIGEN_TEST_SSE2)
message("SSE2: ON") message(STATUS "SSE2: ON")
else() else()
message("SSE2: Using architecture defaults") message(STATUS "SSE2: Using architecture defaults")
endif() endif()
if(EIGEN_TEST_SSE3) if(EIGEN_TEST_SSE3)
message("SSE3: ON") message(STATUS "SSE3: ON")
else() else()
message("SSE3: Using architecture defaults") message(STATUS "SSE3: Using architecture defaults")
endif() endif()
if(EIGEN_TEST_SSSE3) if(EIGEN_TEST_SSSE3)
message("SSSE3: ON") message(STATUS "SSSE3: ON")
else() else()
message("SSSE3: Using architecture defaults") message(STATUS "SSSE3: Using architecture defaults")
endif() endif()
if(EIGEN_TEST_SSE4_1) if(EIGEN_TEST_SSE4_1)
message("SSE4.1: ON") message(STATUS "SSE4.1: ON")
else() else()
message("SSE4.1: Using architecture defaults") message(STATUS "SSE4.1: Using architecture defaults")
endif() endif()
if(EIGEN_TEST_SSE4_2) if(EIGEN_TEST_SSE4_2)
message("SSE4.2: ON") message(STATUS "SSE4.2: ON")
else() else()
message("SSE4.2: Using architecture defaults") message(STATUS "SSE4.2: Using architecture defaults")
endif() endif()
if(EIGEN_TEST_ALTIVEC) if(EIGEN_TEST_ALTIVEC)
message("Altivec: ON") message(STATUS "Altivec: ON")
else() else()
message("Altivec: Using architecture defaults") message(STATUS "Altivec: Using architecture defaults")
endif() endif()
if(EIGEN_TEST_NEON) if(EIGEN_TEST_NEON)
message("ARM NEON: ON") message(STATUS "ARM NEON: ON")
else() else()
message("ARM NEON: Using architecture defaults") message(STATUS "ARM NEON: Using architecture defaults")
endif() endif()
endif() # vectorization / alignment options endif() # vectorization / alignment options
message("\n${EIGEN_TESTING_SUMMARY}") message(STATUS "\n${EIGEN_TESTING_SUMMARY}")
message("************************************************************") message(STATUS "************************************************************")
endmacro(ei_testing_print_summary) endmacro(ei_testing_print_summary)