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
This commit is contained in:
Alex Merry 2015-01-31 12:56:38 +00:00
parent 0161b2fce3
commit d4ea9ef66d

View File

@ -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