mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
fix EIGEN_TEST_NOQT (reported by Philippe Hamelin)
This commit is contained in:
parent
cbfab7204f
commit
dcbf091e60
@ -20,13 +20,13 @@ endif(GSL_FOUND)
|
|||||||
option(EIGEN_TEST_NOQT "Disable Qt support in unit tests" OFF)
|
option(EIGEN_TEST_NOQT "Disable Qt support in unit tests" OFF)
|
||||||
if(NOT EIGEN_TEST_NOQT)
|
if(NOT EIGEN_TEST_NOQT)
|
||||||
find_package(Qt4)
|
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)
|
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)
|
if(TEST_LIB)
|
||||||
add_definitions("-DEIGEN_EXTERN_INSTANTIATIONS=1")
|
add_definitions("-DEIGEN_EXTERN_INSTANTIATIONS=1")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user