mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 21:55:16 -04:00
Fix cp2k_env exporting (#5106)
This commit is contained in:
parent
1d63da52da
commit
96eb417b72
1 changed files with 5 additions and 5 deletions
|
|
@ -252,14 +252,14 @@ if [ "${DRY_RUN}" != "__TRUE__" ]; then
|
|||
# Export variable for CMake options to cp2k_env file
|
||||
cat << EOF > "${CMAKE_INSTALL_PREFIX}/cp2k_env"
|
||||
#!/bin/bash
|
||||
export CP2K_ROOT="${CP2K_ROOT}"
|
||||
source ${TOOLCHAIN_INSTALL_DIR}/setup
|
||||
prepend_path PATH "${CP2K_ROOT}/install/bin"
|
||||
prepend_path LD_LIBRARY_PATH "${CP2K_ROOT}/install/lib"
|
||||
prepend_path PKG_CONFIG_PATH "${CP2K_ROOT}/install/lib/pkgconfig"
|
||||
prepend_path PATH "${CMAKE_INSTALL_PREFIX}/bin"
|
||||
prepend_path LD_LIBRARY_PATH "${CMAKE_INSTALL_PREFIX}/lib"
|
||||
prepend_path PKG_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig"
|
||||
prepend_path CMAKE_PREFIX_PATH "${CMAKE_INSTALL_PREFIX}"
|
||||
EOF
|
||||
cat << EOF
|
||||
Done! Installed binaries are now available in: ${CP2K_ROOT}/install/bin
|
||||
Done! Installed binaries are now available in: ${CMAKE_INSTALL_PREFIX}/bin
|
||||
|
||||
It's suggested to run regtests after installation:
|
||||
${CP2K_ROOT}/tests/do_regtest.py ${CMAKE_INSTALL_PREFIX}/bin psmp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue