all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Add path to a guix package into CMakeLists.txt
@ 2024-09-30 15:44 Aristide Doussot
  2024-10-03 13:18 ` Andreas Enge
  0 siblings, 1 reply; 4+ messages in thread
From: Aristide Doussot @ 2024-09-30 15:44 UTC (permalink / raw)
  To: help-guix

Hello,

     I am new with Guix and currently Guixifying an astronomical library 
(called Wsclean) which directly includes some code from another library 
(namely aocommon) that is already on guix astronomy.scm. In the 
CMakeLists.txt of the library I am trying to install, I want to change 
the line:

"include_directories(${CMAKE_SOURCE_DIR}/external/aocommon/include/)"

into the already installed guix version of aocommon, in my case it would 
be :

"include_directories(/gnu/store/1wiw8m5yjcr26pcqhzbh7bw5ghvbaw90-aocommon-0.0.0-1.7329a07/include/)"

However I don't think other users installing the package would 
mandatorily have 
"/gnu/store/1wiw8m5yjcr26pcqhzbh7bw5ghvbaw90-aocommon-0.0.0-1.7329a07" 
as their path to their installed guix version of aocommon. My question 
is therefore : is there a way to ask guix to find this path based on the 
name of the dependency and use it in my substitute* command on the 
CMakeLists file ?

Thanks,
Aristide Doussot


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-04 21:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-30 15:44 Add path to a guix package into CMakeLists.txt Aristide Doussot
2024-10-03 13:18 ` Andreas Enge
2024-10-04  1:12   ` James Smith
2024-10-04 14:18   ` Felix Lechner via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.