From d4ea9ef66d4d0b41298d1240c36c95a3a183e222 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sat, 31 Jan 2015 12:56:38 +0000 Subject: [PATCH] Fix CamelCase header installation. Installing the Plasma directory (which contains the CamelCase forwarding headers) breaks on case-insensitive filesystems (eg: Windows) because it is that directory also contains the lowercase build-time-only forwarding headers (they are put in the plasma directory). These then overwrite the real lowercase headers with ones that forward to the source directory. However, the first argument to ecm_generate_headers is a variable name containing exactly the CamelCase headers that should be installed, avoiding this issue rather neatly. Reviewed-by: Patrick von Reth --- src/plasma/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plasma/CMakeLists.txt b/src/plasma/CMakeLists.txt index 1cc9ae329..38cdbf80c 100644 --- a/src/plasma/CMakeLists.txt +++ b/src/plasma/CMakeLists.txt @@ -175,9 +175,8 @@ install(FILES version.h DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/plasma COMPONENT Devel) -install(DIRECTORY - ${CMAKE_CURRENT_BINARY_DIR}/Plasma - DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel) +install(FILES ${Plasma_CamelCase_HEADERS} + DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/Plasma COMPONENT Devel) install(FILES