Skip to content

Commit

Permalink
Export mpasInterface target when installing
Browse files Browse the repository at this point in the history
The lack of export was causing link errors in E3SM,
as noted in E3SM-Project/E3SM#5950.
  • Loading branch information
bartgol authored and mperego committed Nov 3, 2023
1 parent 84e7a66 commit 5082677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/landIce/interfaceWithMPAS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ target_include_directories(mpasInterface PUBLIC
"$<BUILD_INTERFACE:${MPAS_INTERFACE_INCLUDE_DIRS}>"
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)

install(TARGETS mpasInterface
install(TARGETS mpasInterface EXPORT albany-export
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}/"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}/"
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")

0 comments on commit 5082677

Please sign in to comment.