Skip to content
Snippets Groups Projects
Commit 7efeecf9 authored by Tobias Malkmus's avatar Tobias Malkmus Committed by Steffen Müthing
Browse files

fix typo within include dirs


(cherry picked from commit ea98a4e0)
Signed-off-by: default avatarSteffen Müthing <muething@dune-project.org>
parent ab74f05c
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,6 @@ if( SUITESPARSE_FOUND )
set( UMFPACK_LIBRARY ${SUITESPARSE_LIBRARY} )
endif()
# behave like a CMake module is supposed to behave
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
......@@ -33,9 +32,8 @@ mark_as_advanced(UMFPACK_INCLUDE_DIR UMFPACK_LIBRARY)
# if both headers and library are found, store results
if(UMFPACK_FOUND)
set(UMFPACK_INCLUDE_DIRS ${UMFPACK_INCLUDE_DIR})
foreach( dir ${UMFPACK_INCLUDE_DIRS} )
list( APPEND UMFPACK_INCLUDE_FLAGS "-I${dir}/" )
foreach( dir ${UMFPACK_INCLUDE_DIR} )
list( APPEND UMFPACK_INCLUDE_FLAGS "-I${dir}/ " )
endforeach()
set(UMFPACK_LIBRARIES ${UMFPACK_LIBRARY})
# log result
......@@ -43,7 +41,7 @@ if(UMFPACK_FOUND)
"Determining location of UMFPack succeded:\n"
"Include directory: ${UMFPACK_INCLUDE_DIRS}\n"
"Library directory: ${UMFPACK_LIBRARIES}\n\n")
set(UMFPACK_DUNE_COMPILE_FLAGS "${UMFPACK_INLCUDE_FLAGS}"
set(UMFPACK_DUNE_COMPILE_FLAGS "${UMFPACK_INCLUDE_FLAGS}"
CACHE STRING "Compile Flags used by DUNE when compiling with UMFPack programs")
set(UMFPACK_DUNE_LIBRARIES ${UMFPACK_LIBRARIES} ${BLAS_LIBRARIES} ${AMD_LIBRARY}
CACHE STRING "Libraries used by DUNE when linking UMFPack programs")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment