mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-26 03:39:53 +01:00
b99a82ddfe
- Output detected version of boost in dot-form (e.g., 1.56.0, instead of 1_56) - Fix Boost.Log library detection: * when linking to shared library, BOOST_LOG_DYN_LINK needs to be defined * when linking to non-multithreaded version, BOOST_LOG_NO_THREADS needs to be defined (see http://www.boost.org/doc/libs/1_60_0/libs/log/doc/html/log/installation/config.html)
17 lines
343 B
Python
17 lines
343 B
Python
top = '.'
|
|
out = 'build'
|
|
|
|
def options(opt):
|
|
opt.load('compiler_cxx boost')
|
|
|
|
def configure(conf):
|
|
conf.load('compiler_cxx boost')
|
|
|
|
if conf.options.boost_mt:
|
|
conf.check_boost('system thread log log_setup')
|
|
else:
|
|
conf.check_boost('log log_setup')
|
|
|
|
def build(bld):
|
|
bld.program(source='main.cpp', target='app', use='BOOST')
|