No subject
Wed May 18 01:12:04 CEST 2011
(ie. required) dependencies for Granatier and KGoldRunner, but only if
they are built (ie. if one passes -DBUILD_granatier=OFF and
-DBUILD_kgoldrunner=OFF), kdegames should build just fine without
libsndfile and OpenAL installed in the system.
In this case, wouldn't it be enough to call find_package(SndFile) and
find_package(OpenAL) and then add the respective macro_log_feature()
calls with the `REQUIRED' parameter set to TRUE instead of FALSE?
By putting these commands inside granatier/CMakeLists.txt and
kgoldrunner/CMakeLists.txt, you avoid calling them when granatier and
kgoldrunner are not build, while still failing to build when they are
not found.
More information about the Kde-buildsystem
mailing list