aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-10-23 01:26:12 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-10-23 01:26:12 +0300
commitd5004a22559d3f1f1b912a2765448cfc76aa53db (patch)
treefd8c583e25f542d3304ef4a6cc33053d4c014f91
parent61d4d5235c5badcda00e0af5760c890e9cc054fe (diff)
downloadlibADLMIDI-d5004a22559d3f1f1b912a2765448cfc76aa53db.tar.gz
libADLMIDI-d5004a22559d3f1f1b912a2765448cfc76aa53db.tar.bz2
libADLMIDI-d5004a22559d3f1f1b912a2765448cfc76aa53db.zip
CMake: Don't produce pkg-config on Android
-rw-r--r--CMakeLists.txt8
1 files 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)