Skip to content

Commit

Permalink
Fix installation location for libraries (ECP-WarpX#2583)
Browse files Browse the repository at this point in the history
During configuration the installation location for libraries is given by
dumping the cmake variable `CMAKE_INSTALL_LIBDIR`.
This commit adjusts the installation of WarpX libraries (WarpX_LIB=ON)
to respect this setting.

Co-authored-by: Rolf Pfeffertal <tropf@users.noreply.github.com>
  • Loading branch information
s9105947 and tropf authored Dec 1, 2021
1 parent 882e19b commit a72c291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ if(WarpX_LIB)
endif()
install(CODE "file(CREATE_LINK
$<TARGET_FILE_NAME:shared>
${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libwarpx.${lib_suffix}.${mod_ext}
${CMAKE_INSTALL_LIBDIR}/libwarpx.${lib_suffix}.${mod_ext}
COPY_ON_ERROR SYMBOLIC)")
endif()

Expand Down

0 comments on commit a72c291

Please sign in to comment.