Skip to content

Commit a72c291

Browse files
s9105947tropf
andauthored
Fix installation location for libraries (#2583)
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 <[email protected]>
1 parent 882e19b commit a72c291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ if(WarpX_LIB)
345345
endif()
346346
install(CODE "file(CREATE_LINK
347347
$<TARGET_FILE_NAME:shared>
348-
${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libwarpx.${lib_suffix}.${mod_ext}
348+
${CMAKE_INSTALL_LIBDIR}/libwarpx.${lib_suffix}.${mod_ext}
349349
COPY_ON_ERROR SYMBOLIC)")
350350
endif()
351351

0 commit comments

Comments
 (0)