Skip to content

Commit 35245d2

Browse files
committed
SConstruct : Option for boost to toggle if boost was built with CMake
1 parent 88b5af7 commit 35245d2

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
10.6.x.x (relative to 10.6.0.1)
22
========
33

4+
Build
5+
-----
6+
7+
- SConstruct : Added `BOOST_CMAKE` option to support Boost that was built with CMake.
8+
49
API
510
---
611

SConstruct

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ o.Add(
178178
"likely related to the specific python version.",
179179
)
180180

181+
o.Add(
182+
BoolVariable( "BOOST_CMAKE", "Enable this if Boost was built with CMake", False )
183+
)
184+
181185
# OpenEXR options
182186

183187
o.Add(
@@ -1090,16 +1094,15 @@ if doConfigure :
10901094

10911095
env.Append( LIBS = [
10921096
"boost_filesystem" + env["BOOST_LIB_SUFFIX"],
1093-
"boost_regex" + env["BOOST_LIB_SUFFIX"],
10941097
"boost_iostreams" + env["BOOST_LIB_SUFFIX"],
10951098
"boost_date_time" + env["BOOST_LIB_SUFFIX"],
10961099
"boost_thread" + env["BOOST_LIB_SUFFIX"],
10971100
"boost_timer" + env["BOOST_LIB_SUFFIX"],
10981101
"boost_chrono" + env["BOOST_LIB_SUFFIX"]
1099-
]
1102+
] + ["boost_regex" + env["BOOST_LIB_SUFFIX"]] if not env["BOOST_CMAKE"] else []
11001103
)
11011104

1102-
if int( env["BOOST_MINOR_VERSION"] ) >=35 :
1105+
if int( env["BOOST_MINOR_VERSION"] ) >=35 and not env["BOOST_CMAKE"] :
11031106
env.Append( LIBS = [ "boost_system" + env["BOOST_LIB_SUFFIX"] ] )
11041107

11051108
c = configureSharedLibrary( env )

0 commit comments

Comments
 (0)