Skip to content

Commit

Permalink
Merge pull request #432 from yanjen/fix_cmake_shared_library_error
Browse files Browse the repository at this point in the history
Cmake error when compiled with BUILD_SHARED_LIB=ON
  • Loading branch information
tclune authored Jul 21, 2023
2 parents 4840813 + 3af9e07 commit cb4bacc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pfunit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ foreach(pfunit_target IN LISTS pfunit_targets)
target_link_libraries (${pfunit_target} PRIVATE pfunit-mpi-defines)

install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/mod/ DESTINATION ${dest}/include)
install (TARGETS ${pfunit_target} pfunit-mpi-defines EXPORT PFUNIT DESTINATION ${dest}/lib)
install (TARGETS ${pfunit_target} EXPORT PFUNIT DESTINATION ${dest}/lib)
endforeach()

install (TARGETS pfunit-mpi-defines EXPORT PFUNIT DESTINATION ${dest}/lib)

0 comments on commit cb4bacc

Please sign in to comment.