Skip to content

Commit 0d09ded

Browse files
Eric Ehlersjenkins
authored andcommitted
QPR-11322 Implement zlib support for Python wrappers/wheels
1 parent b5cb806 commit 0d09ded

3 files changed

Lines changed: 6 additions & 97 deletions

File tree

OREAnalytics/CMakeLists.txt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@ if(MSVC)
1616
add_compile_definitions(BOOST_IOSTREAMS_NO_LIB)
1717
endif()
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)
2320
if (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)
2725
endif()
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)
2927
if (ORE_ENABLE_PARALLEL_UNIT_TEST_RUNNER AND UNIX AND NOT APPLE)
3028
find_library(RT_LIBRARY rt REQUIRED)
3129
endif()

OREAnalytics/orea/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ target_link_libraries(${OREA_LIB_NAME} ${QLE_LIB_NAME})
176176
target_link_libraries(${OREA_LIB_NAME} ${ORED_LIB_NAME})
177177
target_link_libraries(${OREA_LIB_NAME} ${Boost_LIBRARIES})
178178
if(ZLIB_FOUND)
179-
target_link_libraries(${OREA_LIB_NAME} ZLIB::ZLIB)
180179
add_definitions(-DORE_USE_ZLIB)
181180
endif()
182181

readme.python_wheel.windows.txt

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)