diff options
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e7aa2f8..342a4c1 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) |