SuperBuild - cannot set SB_CMAKE_ARGS

Alexander Neundorf neundorf at kde.org
Mon Aug 15 21:33:52 UTC 2011


Hi Valentin,

On Monday 15 August 2011, Valentin Rusu wrote:
> Hello All,
> 
> I created  a SuperBuildOptions.cmake which reads:
> 
> ------ BEGIN ------
> message(STATUS "Setting custom options PREFIX=" $ENV{KDEDIR})
> 
> set(CMAKE_INSTALL_PREFIX $ENV{KDEDIR})
> 
> set(SB_CMAKE_ARGS
>     -DCMAKE_PREFIX_PATH=$ENV{KDEDIR}
>     -DKDE4_AUTH_POLICY_FILES_INSTALL_DIR:STRING=/usr/share/PolicyKit/policy
>     -DLIB_SUFFIX=64
>     -DCMAKE_BUILD_TYPE=debugfull
> )
> message(STATUS ${SB_CMAKE_ARGS})
> ------ END ------
> 
> I change to kdesupport/build, call "cmake .." and check the status
> messages are correctly displaying, showing the correct directory and my
> custom SB_CMAKE_ARGS.
> 
> Then I start "cmake-gui .." only to find that SB_CMAKE_ARGS is empty and
> CMAKE_INSTALL_PREFIX stay to it's default /usr/local value.
> 
> Any hints?

If you simply do a set(), the values do not go into the cache, but remain in 
the "normal" variables, which shadow the cache variables.

If you run cmake-gui, you see the cache variables, i.e. still the old values.
So if you build and get what you expect, everything is fine :-)

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20110815/9e2c291b/attachment.html>


More information about the Kde-buildsystem mailing list