libcint
libcint copied to clipboard
There is no need to add CMAKE_INSTALL_PREFIX in the install command
In this line: (and line 196)
https://github.com/sunqm/libcint/blob/1431b64f7678833601ad3ca016435d0355c31437/CMakeLists.txt#L195
according to cmake's doc: https://cmake.org/cmake/help/latest/command/install.html#index-0-manual:cpack(1) :
As absolute paths do not work with the cmake --install command's --prefix option, or with the cpack installer generators, it is strongly recommended to use relative paths throughout for best support by package maintainers. In particular, there is no need to make paths absolute by prepending CMAKE_INSTALL_PREFIX; this prefix is used by default if the DESTINATION is a relative path.
so the ${CMAKE_INSTALL_PREFIX} should be removed for better portability