[CMake] recommended way to disable a package ?

Alexander Neundorf a.neundorf-work at gmx.net
Sun Jan 29 17:53:58 EST 2006


Hi, 
 
let's say I have a FindAGG.cmake, and it finds everything it requires. It 
is used with FIND_PACKAGE(AGG). 
But let's say the user doesn't want libagg support althoug it is 
installed. 
cmake . -DAGG_FOUND:BOOL=FALSE 
doesn't seem to work, since AGG_FOUND is no cache variable. Can it be 
turned into a cache variable ? 
If not, currently the user could start ccmake and set AGG_INCLUDE_DIR 
empty, this would make AGG_FOUND false during cmake time. But the usual 
user won't know that setting AGG_INCLUDE_DIR will make AGG_FOUND false. 
 
So, should this be wrapped into an OPTION() or is there another way ? 
 
Bye 
Alex 
 
 

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++


More information about the CMake mailing list