aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Thomas Capricelli <orzel@freehackers.org>2011-01-14 14:30:06 +0100
committerGravatar Thomas Capricelli <orzel@freehackers.org>2011-01-14 14:30:06 +0100
commitdcbf091e607adc48d4d122df991d49672455023c (patch)
treeccb10a60fd6b18150f96b48b1f8d7f11642fae27 /test
parentcbfab7204fe62e41912c68f8a39f22b41a3d264d (diff)
fix EIGEN_TEST_NOQT (reported by Philippe Hamelin)
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 5f6e50a08..7bee95ea5 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -20,13 +20,13 @@ endif(GSL_FOUND)
option(EIGEN_TEST_NOQT "Disable Qt support in unit tests" OFF)
if(NOT EIGEN_TEST_NOQT)
find_package(Qt4)
+ if(QT4_FOUND)
+ include(${QT_USE_FILE})
+ ei_add_property(EIGEN_TESTED_BACKENDS "Qt4 support, ")
+ else()
+ ei_add_property(EIGEN_MISSING_BACKENDS "Qt4 support, ")
+ endif()
endif(NOT EIGEN_TEST_NOQT)
-if(EIGEN_TEST_NOQT AND QT4_FOUND)
- include(${QT_USE_FILE})
- ei_add_property(EIGEN_TESTED_BACKENDS "Qt4 support, ")
-else()
- ei_add_property(EIGEN_MISSING_BACKENDS "Qt4 support, ")
-endif()
if(TEST_LIB)
add_definitions("-DEIGEN_EXTERN_INSTANTIATIONS=1")