HandleOpenMP.cmake 524 B

1234567891011
  1. ###############################################################################
  2. # Find OpenMP (if we're also using MKL)
  3. find_package(OpenMP) # do this here to generate correct message if disabled
  4. if(GTSAM_WITH_EIGEN_MKL AND GTSAM_WITH_EIGEN_MKL_OPENMP AND GTSAM_USE_EIGEN_MKL)
  5. if(OPENMP_FOUND AND GTSAM_USE_EIGEN_MKL AND GTSAM_WITH_EIGEN_MKL_OPENMP)
  6. set(GTSAM_USE_EIGEN_MKL_OPENMP 1) # This will go into config.h
  7. list_append_cache(GTSAM_COMPILE_OPTIONS_PUBLIC ${OpenMP_CXX_FLAGS})
  8. endif()
  9. endif()