Boost logo

Boost-Build :

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


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk