On 2/28/2012 1:48 PM, Alexander Neundorf wrote:
Do you think that needs a policy ?

I'm not sure.  It's pretty obscure.

The code currently does:

   // Set a variable marking whether the package was found.
   std::string foundVar = this->Name;
   foundVar += "_FOUND";
   this->Makefile->AddDefinition(foundVar.c_str(), found? "1":"0");

(I forgot the last line in my initial mail).
So the variable is set afterwards unconditionally.
The only condition where it would make a difference is if inside a
FooConfig.cmake file there would be a check whether Foo_FOUND is already TRUE.

I can do that.

Don't forget to unset the variable before loading the module so
we know whether the module defined it.

Thanks,
-Brad
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to