On Wednesday 11 September 2013 18:34:52 Jan Kundrát wrote: > On Wednesday, 11 September 2013 17:45:02 CEST, Pali Rohár wrote: > > First version of code is in my pali-gsoc branch. > > Looks like you based your code on something from cmake's git. > Could you please make a separate commit that adds the > original file (possibly under the new name, not the original > one, that's not important), and make your changes on top of > that? This way, we can see what has changed and know whom to > ask for support five years in future. >
I copied file CMakeDependentOption.cmake from system and I rewritten it. If you want I can include it in git, but you will see only that file was replaced. > > + trojita_find_package(Qt5Gui "" "" "" "" REQUIRED) > > + trojita_find_package(Qt5Network "" "" "" "" REQUIRED) > > + trojita_find_package(Qt5Sql "" "" "" "" REQUIRED) > > + trojita_find_package(Qt5WebKitWidgets "" "" "" "" > > REQUIRED) + trojita_find_package(Qt5LinguistTools "" "" > > "" "") + trojita_find_package(Qt5LinguistForTrojita "" > > "" "" "") + trojita_find_package(Qt5DBus "" "" "" "" > > WITH_DBUS) + trojita_find_package(Qt5Test "" "" "" "" > > WITH_TESTS) > > This is a big no-no -- Qt is such a core thing that it doesn't > make sense to introduce any custom dependency checking on top > of that. Please leave this as-is, we might even want to > replace that with another way of deps altogether > (qt5_use_modules). > I do not understand, where is problem? If qt packages are missing cmake will report error. > Also do not work towrads making the tests automagic -- the > default build shall always run the tests, not proceed with > the build and skipping the test when the qttest is not > available. It's OK to give the user a way of manually opting > out of the tests, but it is not OK to have this automatic > when QtTest is not there, in my opinion. > You can see that default value for WITH_TESTS is ON. Which means if there is missing some dependency (e.g qt test library which is needed for compilation), then cmake fail and write user message about missing dependency. You can change WITH_TESTS to AUTO to not fail (and disable tests) when qt test library is missing. Option ON means that cmake report error and fail if there are missing dependences, OFF means that option is disabled. Option AUTO acts like ON if all dependences are available or OFF. So automatic option is AUTO and not ON. > I'm still not sold on the idea of "static plugins" besides the > passwords-in-qsettings, so I have ignored that part of the > patch. > > Cheers, > Jan -- Pali Rohár pali.ro...@gmail.com
signature.asc
Description: This is a digitally signed message part.