Skip to content

Commit

Permalink
create shared lib
Browse files Browse the repository at this point in the history
  • Loading branch information
tim0s committed Oct 22, 2023
1 parent c65f1e2 commit 2c44754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ add_custom_target(mpi_semantics_avail DEPENDS mpi_sem.yml)
add_custom_target(mpi_wrapper_generated DEPENDS mpi_c_wrapper.c mpi_f_wrapper.c )
add_custom_command(OUTPUT mpi_c_wrapper.c mpi_f_wrapper.c COMMAND ${PROJECT_SOURCE_DIR}/liballprof2/gencode.py -s mpi_sem.yml DEPENDS mpi_semantics_avail)
add_custom_command(OUTPUT mpi_sem.yml COMMAND ${PROJECT_SOURCE_DIR}/liballprof2/gensem.py -l ${CLANG_INSTALL_PREFIX}/lib -m ${PROJECT_SOURCE_DIR}/liballprof2/mpi.h DEPENDS mpi_header_avail)
add_library(mpipclog mpi_c_wrapper.c)
add_library(mpipflog mpi_f_wrapper.c)
add_library(mpipclog SHARED mpi_c_wrapper.c)
add_library(mpipflog SHARED mpi_f_wrapper.c)
add_dependencies(mpipclog mpi_wrapper_generated)
add_dependencies(mpipflog mpi_wrapper_generated)
target_link_libraries(mpipclog ${MPI_C_LIBRARIES})
Expand Down

0 comments on commit 2c44754

Please sign in to comment.