Commit b175ee71 authored by incardon's avatar incardon

Fixing PETSC installation on machines

parent 7410865f
......@@ -25,7 +25,9 @@ include_directories (${CMAKE_CURRENT_SOURCE_DIR}/../openfpm_vcluster/src/)
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/../openfpm_data/src/)
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/../openfpm_io/src/)
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/../src/config)
include_directories (${PETSC_INCLUDES})
if (PETSC_FOUND)
include_directories (${PETSC_INCLUDES})
endif()
include_directories (${PARMETIS_ROOT}/include)
include_directories (${METIS_ROOT}/include)
include_directories (${Boost_INCLUDE_DIRS})
......@@ -67,10 +69,10 @@ target_link_libraries(vector_dist -L${LIBHILBERT_LIBRARY_DIRS} ${LIBHILBERT_LIBR
target_link_libraries(vector_dist ${MPI_C_LIBRARIES})
if(PETSC_FOUND)
target_link_libraries(cart_dec -L${PETSC_LIB_DIR} ${PETSC_LIBRARIES})
target_link_libraries(metis_dec -L${PETSC_LIB_DIR} ${PETSC_LIBRARIES})
target_link_libraries(dom_box -L${PETSC_LIB_DIR} ${PETSC_LIBRARIES})
target_link_libraries(vector_dist -L${PETSC_LIB_DIR} ${PETSC_LIBRARIES})
target_link_libraries(cart_dec ${PETSC_LIBRARIES})
target_link_libraries(metis_dec ${PETSC_LIBRARIES})
target_link_libraries(dom_box ${PETSC_LIBRARIES})
target_link_libraries(vector_dist ${PETSC_LIBRARIES})
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment