SuperBuildOptions.cmake location

Alexander Neundorf neundorf at kde.org
Tue Aug 16 23:24:21 UTC 2011


On Tuesday 16 August 2011, Valentin Rusu wrote:
> Hello,
> The SuperBuild.cmake file includes a SuperBuildOptions.cmake optional file.
> As I understand, this file is intended to hold the settings specific to my
> setup, globally. If I put it next to the SuperBuild.cmake file, it won't
> get included. If I put it under some subdirectory (say kdesupport), then
> it gets included. But in this case I should repeat it in every sibling
> subdirectory, and that's error prone IMO. Is this the intended design? 

Yes, but, your argument is good.

> If yes, will that be possible to add another include for a global options
> file ? If not, well, I already commited a change to the include directive
> that get's the SuperBuildOptions.cmake from the main directory where
> SuperBuildcmake sits.

That's ok.
Maybe trying to include both makes sense ?

include(../SuperBuildOptions.cmake OPTIONAL)
include(SuperBuildOptions.cmake OPTIONAL)

Or should they have different names then ?
Like, e.g. GlobalSuperBuildOptions.cmake ?

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20110817/487b3a90/attachment-0001.html>


More information about the Kde-buildsystem mailing list