aboutsummaryrefslogtreecommitdiff
path: root/data/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-17 13:40:29 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-17 13:40:38 +0200
commitb28e807d94462770765566ab0d879554da1f2b23 (patch)
tree4c8d60c1b1b52a5c2d4ade4237b5bd7622904a09 /data/CMakeLists.txt
parentf6baadaffdb58ba27d585f67680bd7e6172f4444 (diff)
downloadlibayatana-indicator-b28e807d94462770765566ab0d879554da1f2b23.tar.gz
libayatana-indicator-b28e807d94462770765566ab0d879554da1f2b23.tar.bz2
libayatana-indicator-b28e807d94462770765566ab0d879554da1f2b23.zip
{,**/}CMakeLists.txt: Support builds against GTK+-3.0 with IDO support disabled.
Fixes https://github.com/AyatanaIndicators/libayatana-indicator/issues/37
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r--data/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 8e10313..2a60d05 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -1,7 +1,11 @@
# ayatana-indicator3-0.4.pc
if (FLAVOUR_GTK3)
- configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator3.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator3-0.${API_VERSION}.pc" @ONLY)
+ if (ENABLE_IDO)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator3.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator3-0.${API_VERSION}.pc" @ONLY)
+ else()
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator3-no-IDO.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator3-0.${API_VERSION}.pc" @ONLY)
+ endif()
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator3-0.${API_VERSION}.pc" DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
else()
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-0.${API_VERSION}.pc" @ONLY)