Permalink
Browse files

OMP: forward OpenMP flags to ambit

  • Loading branch information...
loriab committed Jun 26, 2018
1 parent 817416f commit c273634c83305ac912e3ddc27a9c4d434cfe40be
Showing with 2 additions and 0 deletions.
  1. +2 −0 external/upstream/ambit/CMakeLists.txt
@@ -59,10 +59,12 @@ if(${ENABLE_ambit})
#-DPSI4_BINARY_DIR=${CMAKE_BINARY_DIR}
#-DPSI4_INCLUDE_DIRS=${PYTHON_INCLUDE_DIR}
#-DENABLE_CXX11_SUPPORT=ON
-DOpenMP_LIBRARY_DIRS=${OpenMP_LIBRARY_DIRS}
-DTargetLAPACK_DIR=${STAGED_INSTALL_PREFIX}/share/cmake/TargetLAPACK
-DTargetHDF5_DIR=${STAGED_INSTALL_PREFIX}/share/cmake/TargetHDF5
CMAKE_CACHE_ARGS -DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}
-DCMAKE_CXX_FLAGS:STRING=${CMAKE_CXX_FLAGS}
-DTargetOpenMP_FIND_COMPONENTS:STRING=C;CXX
INSTALL_COMMAND DESTDIR=${CMAKE_BINARY_DIR}/stage ${CMAKE_MAKE_PROGRAM} install)
set(ambit_DIR ${STAGED_INSTALL_PREFIX}/share/cmake/ambit CACHE PATH "path to internally built ambitConfig.cmake" FORCE)

0 comments on commit c273634

Please sign in to comment.