aboutsummaryrefslogtreecommitdiff
path: root/KF5ConfigMacros.cmake
AgeCommit message (Collapse)Author
2017-07-01Fix for CMake 3.9.Sebastian Holtermann
AUTOMOC now applies to generated headers too, so we need to skip it when using qt5_generate_moc.
2016-11-07Make sure we don't break compilation with past broken unitsAleix Pol
Summary: Show a warning together with the old broken behavior Reviewers: #frameworks, dfaure Reviewed By: dfaure Differential Revision: https://phabricator.kde.org/D3287
2016-11-07Properly parse function keywordsAleix Pol
Summary: Use cmake_parse_arguments() instead of roughly implementing it locally CCBUG: 371562 Test Plan: recompiled everything, nothing broke Reviewers: #frameworks, dfaure Reviewed By: dfaure Differential Revision: https://phabricator.kde.org/D3251
2016-11-03Don't be fatal on File field not being properly parsedAleix Pol
Summary: Fallback on trying the same filename as the actual file. There were some regressions due to the former matching expression: string(REGEX REPLACE "^(.*\n)?File=([^\n]+kcfg).*\n.*$" "\\2" _kcfg_FILENAME "${_contents}") This one would allow for the File field to be the kcfgc file (which doesn't make sense). With this patch we're not reproducing this behaviour, but we're allowing for the things that aren't building to work. After all, most kcfg and kcfgc files share the same name. Reviewers: #frameworks, davidedmundson Reviewed By: davidedmundson Subscribers: aacid, kfunk Differential Revision: https://phabricator.kde.org/D3226
2016-10-31Make kconfig_compiler autotests use the KCONFIG_ADD_KCFG_FILESAleix Pol
Summary: Instead of having an odd fake of it. Will help some required refactorings and already showed some issues, fixed by this patch, namely: - don't use string(regex replace) to extract a string from another string. in case it doesn't match it will offer the whole content which is never what we want. - messages(ERROR), the correct parameter is FATAL_ERROR, cmake understands "ERROR" as mere output string - turn the macro into a function, otherwise 2 calls in the same subdirectory are dangerous. CCBUG: 371562 Test Plan: tests still pass, projects that use the macro still build Reviewers: #frameworks, dfaure Reviewed By: dfaure Subscribers: dfaure Differential Revision: https://phabricator.kde.org/D3178
2015-04-23replace reference to licence with inline licenceJonathan Riddell
2014-03-24Rename the kconfig_compiler_kf5 target to kconfig_compilerAlex Merry
Just because the executable has the "_kf5" suffix, that does not mean the target should have it. This is ugly API, and will be unnecessary porting effort for KF6. REVIEW: 116995
2014-03-24Remove references to ${_KDE4_KCONFIG_COMPILER_DEP}Alex Merry
Not sure why it would be unset and then used, instead of just not used at all. LXR says it's not used anywhere else, though. REVIEW: 116962
2014-01-09rename kconfig_compiler to kconfig_compiler_kf5Jonathan Riddell
2013-12-18Move kconfig code to the root directory.Jenkins CI