help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Add path to a guix package into CMakeLists.txt


From: Aristide Doussot
Subject: Add path to a guix package into CMakeLists.txt
Date: Mon, 30 Sep 2024 17:44:26 +0200
User-agent: Mozilla Thunderbird

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]