Commit 4061535e authored by Michael Pyne's avatar Michael Pyne

Fix build for pre-ECM CMake install.

The CI infrastructure started failing kdesrc-build after commit
864aa9d4, which I suspect is because the
CI builds and installs kdesrc-build without setting up a KDE buildsystem
(i.e. extra-cmake-modules).

This is supported in kdesrc-build, but the commit that broke the build
adds a reference a variable defined in ECM's KDEInstallDirs macro.

Fixed by adding to the existing compat layer machinery in the existing
CMakeLists.txt (at least, I hope!)
parent d175dbe3
Pipeline #6537 passed with stage
in 1 minute and 6 seconds
......@@ -25,6 +25,7 @@ else()
# ECM now sets KDE_INSTALL_DATADIR to PREFIX/share, try to match
set(KDE_INSTALL_DATADIR "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH "The parent directory where applications can install their data")
set(KDE_INSTALL_BINDIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "The install dir for executables")
set(KDE_INSTALL_METAINFODIR "${KDE_INSTALL_DATADIR}/metainfo" CACHE PATH "AppStream metadata directory")
set(KDESRC_BUILD_INSTALL_MODULES TRUE CACHE BOOL "Controls whether to install the modules that make up the script. Leave enabled unless running straight from source")
......@@ -107,7 +108,7 @@ install(PROGRAMS
install(FILES org.kde.kdesrc-build.metainfo.xml DESTINATION ${CMAKE_INSTALL_METAINFODIR})
install(FILES org.kde.kdesrc-build.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment