From 641af3083afd15c90096eda64f5a439621a79727 Mon Sep 17 00:00:00 2001 From: Ruslan Baratov Date: Wed, 15 Mar 2017 19:34:24 +0800 Subject: [PATCH] Fix CMake error with iOS toolchain --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9cc4d26..c8de547 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -212,8 +212,13 @@ write_basic_package_version_file( # Note: variable 'targets_export_name' used configure_file("cmake/Config.cmake.in" "${project_config}" @ONLY) +set(targets_to_install bz2) +if(NOT IOS) + list(APPEND targets_to_install bzip2recover bzip2_bin) +endif() + install( - TARGETS bz2 bzip2recover bzip2_bin + TARGETS ${targets_to_install} EXPORT "${targets_export_name}" LIBRARY DESTINATION "lib" ARCHIVE DESTINATION "lib"