Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 225a38f7 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

morse_cmake: update calls to morse_export_imported_target to match its new api

parent fb6e22e7
No related branches found
No related tags found
1 merge request!125cmake & ci
......@@ -121,16 +121,16 @@ endif()
# export targets of dependencies is spm static
if (NOT BUILD_SHARED_LIBS)
morse_export_imported_target(MORSE LAPACKE lapacke spm)
morse_export_imported_target(MORSE CBLAS cblas spm)
morse_export_imported_target(MORSE M m spm)
morse_export_imported_target(MORSE::LAPACKE lapacke spm)
morse_export_imported_target(MORSE::CBLAS cblas spm)
morse_export_imported_target(MORSE::M m spm)
if (SPM_WITH_SCOTCH)
morse_export_imported_target(MORSE SCOTCH scotch spm)
morse_export_imported_target(MORSE::SCOTCH scotch spm)
endif()
endif()
if (SPM_WITH_MPI)
# mpi is a public dependency so that exporting is not an option
morse_export_imported_target(MPI MPI_C mpic spm)
morse_export_imported_target(MPI::MPI_C mpic spm)
endif()
# export target spm
......
......@@ -54,7 +54,7 @@ endif()
if ( SPM_WITH_MPI )
target_compile_definitions(spmf INTERFACE "SPM_WITH_MPI")
target_link_libraries( spmf PUBLIC MPI::MPI_Fortran)
morse_export_imported_target(MPI MPI_Fortran mpif spm)
morse_export_imported_target(MPI::MPI_Fortran mpif spm)
endif()
# export target spmf
......
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