From d5004a22559d3f1f1b912a2765448cfc76aa53db Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Tue, 23 Oct 2018 01:26:12 +0300 Subject: CMake: Don't produce pkg-config on Android --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c265bd5..0837c5d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -580,9 +580,11 @@ install(FILES include/adlmidi.hpp DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") -configure_file(libADLMIDI.pc.in libADLMIDI.pc @ONLY) -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libADLMIDI.pc" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") +if(NOT ANDROID) + configure_file(libADLMIDI.pc.in libADLMIDI.pc @ONLY) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libADLMIDI.pc" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") +endif() option(WITH_UNIT_TESTS "Enable unit testing" OFF) if(WITH_UNIT_TESTS) -- cgit v1.2.3