Made OpenMP check a little smarter - only is performed if MKL is found, to speed up cmake.

release/4.3a0
Richard Roberts 2014-02-08 14:09:50 -05:00
parent 9d2c5888b8
commit c1a018a1fd
1 changed files with 2 additions and 2 deletions

View File

@ -182,8 +182,8 @@ endif()
###############################################################################
# Find OpenMP
if(GTSAM_USE_EIGEN_MKL AND GTSAM_USE_EIGEN_MKL_OPENMP)
# Find OpenMP (if we're also using MKL)
if(GTSAM_USE_EIGEN_MKL AND GTSAM_USE_EIGEN_MKL_OPENMP AND GTSAM_USE_EIGEN_MKL)
find_package(OpenMP)
if(OPENMP_FOUND AND GTSAM_USE_EIGEN_MKL AND GTSAM_WITH_EIGEN_MKL_OPENMP)