diff options
author | Black Hat <bhat@encom.eu.org> | 2018-09-13 06:47:54 +0800 |
---|---|---|
committer | Black Hat <bhat@encom.eu.org> | 2018-09-13 06:47:54 +0800 |
commit | d4f67946169670bfd74037b8169ef1e315832c20 (patch) | |
tree | 1a31866cecd615f625e8d8f31e04f2ffe33ca142 | |
parent | 5f61ec9305ba17cc414f0bd02d4f97234bc2c849 (diff) | |
download | libquotient-d4f67946169670bfd74037b8169ef1e315832c20.tar.gz libquotient-d4f67946169670bfd74037b8169ef1e315832c20.zip |
Use pkg-config only on GNU/Linux.
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8da079d8..be1541ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,4 +190,7 @@ if (WIN32) endif (WIN32) install(TARGETS qmc-example RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/QMatrixClient.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + +if (UNIX AND NOT APPLE) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/QMatrixClient.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +endif() |