[Nix-dev] Strange behavior of the cmake setup-hook

Pavel Chuprikov pschuprikov at gmail.com
Wed Mar 16 18:38:38 CET 2016


Hello,

There is a setup-hook.sh
<https://github.com/NixOS/nixpkgs/blob/release-16.03/pkgs/development/tools/build-managers/cmake/setup-hook.sh>
for
cmake, and there is makeCmakeFIndLibs function definition in this file. The
function examines the content of NIX_CFLAGS_COMPILE and if there is a flag
starting with *"-I" *it adds it to CMAKE_INCLUDE_PATH. But when I check the
content of NIX_FLAGS_COMPILE there are only *"-isystem"* flags (the ones I
need), so nothing happens.

Could someone clarify to me what's going on and what am I doing wrong?

The goal I'm trying to achieve is to create a build environment for
cmake-based project.

--
Pavel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160316/632e599e/attachment.html 


More information about the nix-dev mailing list