Skip to content

Commit

Permalink
SERVER-5172: Fix builds that set include and library paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Schwerin authored and Andy Schwerin committed Mar 7, 2012
1 parent f729d0c commit 322c3cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ if has_option( "libpath" ):
if has_option( "cpppath" ):
env["CPPPATH"] = [get_option( "cpppath" )]

env.Append( CPPDEFINES=[ "_SCONS" , "MONGO_EXPOSE_MACROS" ],
CPPPATH=[ '$BUILD_DIR', "$BUILD_DIR/mongo" ] )
env.Prepend( CPPDEFINES=[ "_SCONS" , "MONGO_EXPOSE_MACROS" ],
CPPPATH=[ '$BUILD_DIR', "$BUILD_DIR/mongo" ] )

if has_option( "safeshell" ):
env.Append( CPPDEFINES=[ "MONGO_SAFE_SHELL" ] )
Expand Down Expand Up @@ -782,11 +782,11 @@ for shortName in getThirdPartyShortNames():
myModule.configure( env , fileLists , options_topass )

if not has_option("use-system-all") and not has_option("use-system-pcre"):
env.Append(CPPPATH=[ '$BUILD_DIR/third_party/pcre-${PCRE_VERSION}' ])
env.Prepend(CPPPATH=[ '$BUILD_DIR/third_party/pcre-${PCRE_VERSION}' ])

if not has_option('use-system-all') and not has_option('use-system-boost'):
env.Append(CPPPATH=['$BUILD_DIR/third_party/boost'],
CPPDEFINES=['BOOST_ALL_NO_LIB'])
env.Prepend(CPPPATH=['$BUILD_DIR/third_party/boost'],
CPPDEFINES=['BOOST_ALL_NO_LIB'])

env.Append( CPPPATH=['$EXTRACPPPATH'],
LIBPATH=['$EXTRALIBPATH'] )
Expand Down

0 comments on commit 322c3cc

Please sign in to comment.