Skip to content

Commit 6850df2

Browse files
Eric Ehlersjenkins
authored andcommitted
implement zlib support
1 parent 717fec2 commit 6850df2

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

OREAnalytics/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ 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+
1923
SET(COMPONENT_LIST date_time filesystem iostreams regex serialization system timer thread)
2024
if (ORE_BUILD_TESTS)
2125
LIST(APPEND COMPONENT_LIST unit_test_framework)

OREAnalytics/orea/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ target_link_libraries(${OREA_LIB_NAME} ${QL_LIB_NAME})
191191
target_link_libraries(${OREA_LIB_NAME} ${QLE_LIB_NAME})
192192
target_link_libraries(${OREA_LIB_NAME} ${ORED_LIB_NAME})
193193
target_link_libraries(${OREA_LIB_NAME} ${Boost_LIBRARIES})
194-
if(ZLIB_FOUND)
194+
if(ORE_USE_ZLIB)
195+
target_link_libraries(${OREA_LIB_NAME} ${ZLIB_LIBRARIES})
195196
add_definitions(-DORE_USE_ZLIB)
196197
endif()
197198

0 commit comments

Comments
 (0)