File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,16 +16,14 @@ if(MSVC)
1616 add_compile_definitions (BOOST_IOSTREAMS_NO_LIB )
1717endif ()
1818
19- if (ORE_USE_ZLIB)
20- find_package (ZLIB REQUIRED )
21- endif ()
22-
19+ SET (COMPONENT_LIST date_time filesystem iostreams regex serialization system timer thread)
2320if (ORE_BUILD_TESTS)
24- SET (COMPONENTS_CONDITIONAL "unit_test_framework" )
25- else ()
26- SET (COMPONENTS_CONDITIONAL "" )
21+ LIST (APPEND COMPONENT_LIST unit_test_framework)
22+ endif ()
23+ if (ORE_USE_ZLIB)
24+ LIST (APPEND COMPONENT_LIST zlib)
2725endif ()
28- find_package (Boost REQUIRED COMPONENTS ${COMPONENTS_CONDITIONAL} regex date_time thread serialization system filesystem timer iostreams OPTIONAL_COMPONENTS chrono )
26+ find_package (Boost REQUIRED COMPONENTS ${COMPONENT_LIST} OPTIONAL_COMPONENTS chrono )
2927if (ORE_ENABLE_PARALLEL_UNIT_TEST_RUNNER AND UNIX AND NOT APPLE )
3028 find_library (RT_LIBRARY rt REQUIRED )
3129endif ()
Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ target_link_libraries(${OREA_LIB_NAME} ${QLE_LIB_NAME})
176176target_link_libraries (${OREA_LIB_NAME} ${ORED_LIB_NAME} )
177177target_link_libraries (${OREA_LIB_NAME} ${Boost_LIBRARIES} )
178178if (ZLIB_FOUND)
179- target_link_libraries (${OREA_LIB_NAME} ZLIB::ZLIB )
180179 add_definitions (-DORE_USE_ZLIB )
181180endif ()
182181
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments