cmake: find bzip2

This commit is contained in:
Philippe Teuwen 2020-06-18 00:50:52 +02:00
commit e6be31529a

View file

@ -118,12 +118,10 @@ if(ANDROID)
ExternalProject_Add_StepTargets(bzip2 configure build install)
set(BZIP2_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/deps/bzip2/src/bzip2)
set(BZIP2_LIBRARIES ${CMAKE_CURRENT_BINARY_DIR}/deps/bzip2/src/bzip2/libbz2.a)
else()
set(BZIP2_LIBRARIES bz2)
endif(ANDROID)
if (BZIP2_LIBRARIES)
set(BZIP2_FOUND ON)
endif (BZIP2_LIBRARIES)
else()
find_package (BZip2 REQUIRED)
endif(ANDROID)
add_subdirectory(${PM3_ROOT}/client/deps deps)