aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-04-29 08:04:42 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-04-29 08:04:42 -0400
commit664f2d450890eefa04b2ddfc826f5ab4cd116a57 (patch)
treeb51c3e6d2c27c49aa1c0b8d53af15b8039a13fe7 /test
parentd3f97f758204b56fe32db5857715d9aa128baf2e (diff)
dont try passing --version to qcc
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index f46e4304f..b43a5c56d 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -179,10 +179,15 @@ ei_add_test(nesting_ops "${CMAKE_CXX_FLAGS_DEBUG}")
ei_add_test(prec_inverse_4x4)
+string(TOLOWER "${CMAKE_CXX_COMPILER}" cmake_cxx_compiler_tolower)
+if(cmake_cxx_compiler_tolower MATCHES "qcc")
+ set(CXX_IS_QCC "ON")
+endif()
+
ei_add_property(EIGEN_TESTING_SUMMARY "CXX: ${CMAKE_CXX_COMPILER}\n")
-if(CMAKE_COMPILER_IS_GNUCXX)
+if(CMAKE_COMPILER_IS_GNUCXX AND NOT CXX_IS_QCC)
execute_process(COMMAND ${CMAKE_CXX_COMPILER} --version COMMAND head -n 1 OUTPUT_VARIABLE EIGEN_CXX_VERSION_STRING OUTPUT_STRIP_TRAILING_WHITESPACE)
ei_add_property(EIGEN_TESTING_SUMMARY "CXX_VERSION: ${EIGEN_CXX_VERSION_STRING}\n")
-endif(CMAKE_COMPILER_IS_GNUCXX)
+endif()
ei_add_property(EIGEN_TESTING_SUMMARY "CXX_FLAGS: ${CMAKE_CXX_FLAGS}\n")
ei_add_property(EIGEN_TESTING_SUMMARY "Sparse lib flags: ${SPARSE_LIBS}\n")