Skip to content

Commit 8cb3cde

Browse files
committed
Merge branch 'master' into 'v.1.8.14.0'
merge master changes for libboost systems fix See merge request qs/ore!126
2 parents 0eff877 + e35d98b commit 8cb3cde

6 files changed

Lines changed: 16 additions & 6 deletions

File tree

ORE-SWIG/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ set_ql_library_name()
3333

3434
# To build the module, we moreover need Boost, Swig, Python
3535
set(BOOST_COMPONENT_LIST serialization date_time filesystem timer thread log)
36+
37+
3638
if(ORE_USE_ZLIB)
3739
list(APPEND BOOST_COMPONENT_LIST iostreams)
3840
if(MSVC)
3941
list(APPEND BOOST_COMPONENT_LIST zlib)
4042
endif()
4143
endif()
42-
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENT_LIST})
44+
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENT_LIST} OPTIONAL_COMPONENTS system)
4345
find_package(SWIG REQUIRED)
4446
find_package(Python REQUIRED COMPONENTS Development)
4547
if(ORE_USE_ZLIB)

ORE-SWIG/OREAnalytics-SWIG/Java/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ include_directories(${PROJECT_SOURCE_DIR}/../../QuantExt-SWIG/SWIG)
5151
include_directories(${PROJECT_SOURCE_DIR}/../../OREData-SWIG/SWIG)
5252
include_directories(${PROJECT_SOURCE_DIR}/../../OREAnalytics-SWIG/SWIG)
5353

54-
find_package (Boost COMPONENTS serialization date_time filesystem REQUIRED)
54+
find_package (Boost REQUIRED COMPONENTS serialization date_time filesystem OPTIONAL_COMPONENTS system)
5555
include_directories(${Boost_INCLUDE_DIRS})
5656

5757
# specify library search path (update this when we build ORE with cmake)

ORE-SWIG/OREData-SWIG/Java/CmakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ include_directories(${PROJECT_SOURCE_DIR}/../../QuantLib-SWIG/SWIG)
4848
include_directories(${PROJECT_SOURCE_DIR}/../../QuantExt-SWIG/SWIG)
4949
include_directories(${PROJECT_SOURCE_DIR}/../../OREData-SWIG/SWIG)
5050

51-
find_package (Boost COMPONENTS serialization date_time regex filesystem REQUIRED)
51+
find_package (Boost REQUIRED COMPONENTS serialization date_time regex filesystem OPTIONAL_COMPONENTS system)
52+
5253
include_directories(${Boost_INCLUDE_DIRS})
5354

5455
# specify library search path (update this when we build ORE with cmake)

OREAnalytics/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ if(ORE_USE_ZLIB)
1818
endif()
1919

2020
SET(COMPONENT_LIST date_time filesystem iostreams serialization timer thread)
21+
2122
if (ORE_BUILD_TESTS)
2223
LIST(APPEND COMPONENT_LIST unit_test_framework)
2324
endif()
2425
if(MSVC AND ORE_USE_ZLIB)
2526
LIST(APPEND COMPONENT_LIST zlib)
2627
endif()
27-
find_package (Boost REQUIRED COMPONENTS ${COMPONENT_LIST} OPTIONAL_COMPONENTS chrono)
28+
find_package (Boost REQUIRED COMPONENTS ${COMPONENT_LIST} OPTIONAL_COMPONENTS system chrono)
2829
if (ORE_ENABLE_PARALLEL_UNIT_TEST_RUNNER AND UNIX AND NOT APPLE)
2930
find_library(RT_LIBRARY rt REQUIRED)
3031
endif()

OREData/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ if (ORE_BUILD_TESTS)
1313
else()
1414
SET(COMPONENTS_CONDITIONAL "")
1515
endif()
16-
find_package (Boost REQUIRED COMPONENTS ${COMPONENTS_CONDITIONAL} date_time serialization filesystem timer log OPTIONAL_COMPONENTS chrono)
16+
17+
find_package (Boost REQUIRED COMPONENTS ${COMPONENTS_CONDITIONAL} date_time thread serialization timer log filesystem OPTIONAL_COMPONENTS system chrono)
18+
1719

1820
include_directories(${Boost_INCLUDE_DIRS})
1921
include_directories(${QUANTLIB_SOURCE_DIR})

QuantExt/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ if (ORE_BUILD_TESTS)
1212
else()
1313
SET(COMPONENTS_CONDITIONAL "")
1414
endif()
15-
find_package (Boost REQUIRED COMPONENTS ${COMPONENTS_CONDITIONAL} date_time thread serialization timer log filesystem OPTIONAL_COMPONENTS chrono)
15+
16+
17+
find_package (Boost REQUIRED COMPONENTS ${COMPONENTS_CONDITIONAL} date_time thread serialization timer log filesystem OPTIONAL_COMPONENTS system chrono)
18+
19+
1620
if (ORE_ENABLE_PARALLEL_UNIT_TEST_RUNNER AND UNIX AND NOT APPLE)
1721
find_library(RT_LIBRARY rt REQUIRED)
1822
endif()

0 commit comments

Comments
 (0)