[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_
bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH
Sun, 1 Mar 2015 10:58:47 +0100
The patch does not work. I thought this was due to it returning the .cmake
files themselves and not the directory containing them. Here, for instance,
Inside the build directory, I tried an
with the same error message.
Then I followed the advice given on screen and set
worked as well. But I do not see how to implement this kind of package
specific path in guix.
The following explains why CMAKE_MODULE_PATH has no effect here:
Apparently, there is a "module mode" and a "config mode". The first one uses
CMAKE_MODULE_PATH and looks for files called FindPACKAGE.cmake. We are in the
second case here, where a file PACKAGEConfig.cmake or package-config.cmake
is looked for.
Further below on that page, it is explained where these config files are
looked for. On unix like systems, this is
The <prefix> part can be set by CMAKE_PREFIX_PATH.
What would be desirable is the following:
In the definition of a search path, we need an additional transformation
(if it is not already there). We need to look for the regular expression
I think that would also make the lines
(setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
(setenv "CMAKE_INCLUDE_PATH" (getenv "CPATH"))
in guix/build/cmake-build-system obsolete.
Concerning the "lib64" part, I still have doubts. The documentation speaks
of "lib/<arch>"; yet, there are packages which install into "lib64" (like
libqtxdg, needed for liblxqt, which triggered this discussion).
So if the suggestion above does not work, we can in a second step try
to play with CMAKE_INSTALL_LIBDIR.
- bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH,
Andreas Enge <=