$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-build] passing flags to Jamroot
From: Athanasios Dousis (ndousis_at_[hidden])
Date: 2011-05-26 15:35:29
Hello all,
In my Jamroot file, I'd like to use a conditional statement:
if $(flag) = 1 {
echo "do something"
} else {
echo "do something else"
}
How do I pass in "flag" from the command line, i.e., when I call bjam?
Or alternatively, is there a way to search the environment variable $PATH for a particular compiler (e.g., nvcc) and specify 'build-project' and 'install' conditionally on the existence of the target compiler?
Thanks,
Nasos Dousis