Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Stephen Kelly
Alexander Neundorf wrote: > On Tuesday 18 December 2012, Stephen Kelly wrote: >> Alexander Neundorf wrote: >> > yes, but forgot to answer. >> > No strong reason here. The options containing "HAVE" are based on >> > whether that thing existed on the system where the library was built. >> > This one

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Alexander Neundorf
On Tuesday 18 December 2012, Stephen Kelly wrote: > Alexander Neundorf wrote: > > yes, but forgot to answer. > > No strong reason here. The options containing "HAVE" are based on whether > > that thing existed on the system where the library was built. This one is > > independent on whether udisk2

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Stephen Kelly
Alexander Neundorf wrote: > At work, we set the RPATH manually. We know the limited number of > libraries we link against, we want to have full control over the RPATH. I > would be surprised if we would be the only ones. Anyone handling RPATH manually knows about get_filename_component :). > > I

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Alexander Neundorf
On Tuesday 18 December 2012, Stephen Kelly wrote: > Alexander Neundorf wrote: > > As providers of a library we should not enforce how people use CMake, > > i.e. whether they use the automatic INSTALL_RPATH_USE_LINK_PATH or > > whether they want to decide manually. > > We can > > * make the common

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Stephen Kelly
Alexander Neundorf wrote: > yes, but forgot to answer. > No strong reason here. The options containing "HAVE" are based on whether > that thing existed on the system where the library was built. This one is > independent on whether udisk2 existed on that system, so I thought "USE" > might be bette

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Alexander Neundorf
On Tuesday 18 December 2012, Stephen Kelly wrote: > Alexander Neundorf wrote: > > On Tuesday 18 December 2012, Stephen Kelly wrote: > >> Alexander Neundorf wrote: > >> > Please have a look at the current solidConfig.cmake.in. > >> > This is mostly as I think it should be (the include-guard is still

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Stephen Kelly
Alexander Neundorf wrote: > On Tuesday 18 December 2012, Stephen Kelly wrote: >> Alexander Neundorf wrote: >> > Please have a look at the current solidConfig.cmake.in. >> > This is mostly as I think it should be (the include-guard is still >> > missing). >> > >> > >> > solidConfig.cmake >> > >>

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Stephen Kelly
Alexander Neundorf wrote: > As providers of a library we should not enforce how people use CMake, i.e. > whether they use the automatic INSTALL_RPATH_USE_LINK_PATH or whether they > want to decide manually. We can * make the common things easy (we don't need to do anything and people can use I

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Alexander Neundorf
On Tuesday 18 December 2012, Stephen Kelly wrote: > Alexander Neundorf wrote: > > Please have a look at the current solidConfig.cmake.in. > > This is mostly as I think it should be (the include-guard is still > > missing). > > > > > > solidConfig.cmake > > > > # solidConfig.cmake provides info

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Alexander Neundorf
On Tuesday 18 December 2012, Stephen Kelly wrote: > Alexander Neundorf wrote: > > On Thursday 29 November 2012, Stephen Kelly wrote: > >> Alexander Neundorf wrote: > >> > The code for creating a Config.cmake file is not trivial, but IMO also > >> > not boilerplate, and Stephen agreed in Berlin that

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Stephen Kelly
Alexander Neundorf wrote: > Please have a look at the current solidConfig.cmake.in. > This is mostly as I think it should be (the include-guard is still > missing). > > solidConfig.cmake > # solidConfig.cmake provides information about the installed solid > # library. > #is supported solid_

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-18 Thread Stephen Kelly
Alexander Neundorf wrote: > On Thursday 29 November 2012, Stephen Kelly wrote: >> Alexander Neundorf wrote: >> > The code for creating a Config.cmake file is not trivial, but IMO also >> > not boilerplate, and Stephen agreed in Berlin that this will have to be >> > done individually be every proje

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-16 Thread Alexander Neundorf
On Thursday 29 November 2012, Stephen Kelly wrote: ... > The tier1 Config files (after CMake 2.8.11) should only contain this: > > set(kwidgetsaddons_VERSION_MAJOR "@KWIDGETSADDONS_VERSION_MAJOR@") > set(kwidgetsaddons_VERSION_MINOR "@KWIDGETSADDONS_VERSION_MINOR@") > set(kwidgetsaddons_VERSION

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-16 Thread Alexander Neundorf
On Thursday 29 November 2012, Stephen Kelly wrote: > Alexander Neundorf wrote: > > The code for creating a Config.cmake file is not trivial, but IMO also > > not boilerplate, and Stephen agreed in Berlin that this will have to be > > done individually be every project. This is the added > > threadw

Re: Config files for frameworks

2012-12-06 Thread Stephen Kelly
Alexander Neundorf wrote: >> There is no point in keeping cmake files looking exactly as they do now >> if we can instead remove noisy/redundant information. That is progress. >> If it was 2006 what would you choose? > > I would prefer if both ways would stay valid and continue to work as they > d

Re: Config files for frameworks

2012-12-06 Thread Alexander Neundorf
On Tuesday 04 December 2012, Stephen Kelly wrote: > Alexander Neundorf wrote: > >> > Retraining all our users that using include_directories() is wrong > >> > doesn't sound good to me. > >> > >> I think re-training is the cost of simplicity, and it's worth it. > >> > >> You only expect to have to

Re: Config files for frameworks

2012-12-04 Thread Stephen Kelly
Alexander Neundorf wrote: >> > Retraining all our users that using include_directories() is wrong >> > doesn't sound good to me. >> >> I think re-training is the cost of simplicity, and it's worth it. >> >> You only expect to have to use include_directories() because you have >> always had to. So

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-04 Thread Alexander Neundorf
On Tuesday 04 December 2012, Stephen Kelly wrote: > Alexander Neundorf wrote: > > I still think it is not a good idea that > > > > target_link_libraries(foo KF5::widgetsaddons) > > > > also sets include dirs for the target foo. > > > > Should I discuss that again on cmake-devel ? > > It would s

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-04 Thread Stephen Kelly
Alexander Neundorf wrote: > I still think it is not a good idea that > > target_link_libraries(foo KF5::widgetsaddons) > > also sets include dirs for the target foo. > Should I discuss that again on cmake-devel ? It would seem more appropriate than here, but I think it's already decided. > >>

Re: Config files for frameworks (Was: KArchive for Qt4)

2012-12-03 Thread Alexander Neundorf
On Thursday 29 November 2012, Stephen Kelly wrote: > Alexander Neundorf wrote: > > The code for creating a Config.cmake file is not trivial, but IMO also > > not boilerplate, and Stephen agreed in Berlin that this will have to be > > done individually be every project. This is the added > > threadw