Skip to content

Commit

Permalink
Update wcb script to build eval_dlee
Browse files Browse the repository at this point in the history
  • Loading branch information
usert5432 committed Sep 14, 2021
1 parent f560761 commit 2425dd2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/eval_dlee.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "config.h"
#if HAVE_VLNEVAL == 1
#if (HAVE_VLNEVAL_INC == 1) && (HAVE_VLNEVAL_LIB == 1)

#include <iostream>
#include <unordered_map>
Expand Down
10 changes: 5 additions & 5 deletions wcb

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ def options(opt):
opt.load("wcb")

def configure(cfg):

cfg.load("wcb")

if cfg.env["HAVE_VLNEVAL"]:
cfg.check_boost(lib = 'program_options')

# boost 1.59 uses auto_ptr and GCC 5 deprecates it vociferously.
cfg.env.CXXFLAGS += ['-Wno-deprecated-declarations']
cfg.env.CXXFLAGS += ['-Wall', '-Wno-unused-local-typedefs', '-Wno-unused-function']
Expand All @@ -19,4 +21,11 @@ def configure(cfg):

def build(bld):
bld.load('wcb')
bld.smplpkg('WCPuBooNE_BDT_APP', use='ROOTSYS')

use = [ 'ROOTSYS' ]

if bld.env["HAVE_VLNEVAL"]:
use += [ 'VLNEVAL', 'BOOST' ]

bld.smplpkg('WCPuBooNE_BDT_APP', use = use)

0 comments on commit 2425dd2

Please sign in to comment.