Question about boost.build and automatic selection of toolsets
I am using boost-build in my project (very happy with the outcome) but I would like to have the toolset selected automatically based on the operating system. Currently I am running successfully from the command line by manually setting the toolset when I am running it from macos and linux accordingly, but I feel like the Jamroot file should be able to figure that out for me. Any ideas? I made a more descriptive post on stack overflow, to share the knowledge once we figure this one out. http://stackoverflow.com/questions/18939911/choosing-compiler-options-based-... Thank you, Mauricio Carneiro, Ph.D. http://www.broadinstitute.org/~carneiro/
AMDG On 09/21/2013 08:21 PM, Mauricio Carneiro wrote:
I am using boost-build in my project (very happy with the outcome) but I would like to have the toolset selected automatically based on the operating system. Currently I am running successfully from the command line by manually setting the toolset when I am running it from macos and linux accordingly, but I feel like the Jamroot file should be able to figure that out for me.
Any ideas?
The normal way to handle this is to use a different user-config.jam on each OS. If you want all the configuration to be in a single file, you can use the os module to find out the running OS. import os ; if [ os.name ] = OSX { ... } else if [ os.name ] = UNIX { ... }
I made a more descriptive post on stack overflow, to share the knowledge once we figure this one out.
http://stackoverflow.com/questions/18939911/choosing-compiler-options-based-...
In Christ, Steven Watanabe
participants (2)
-
Mauricio Carneiro
-
Steven Watanabe