[CMake] Enhancement of FIND_PACKAGE
Brad King
brad.king at kitware.com
Fri Jan 27 10:17:59 EST 2006
Filipe Sousa wrote:
>>I'm thinking we could extend REQUIRED parameter from FIND_PACKAGE to be
>>more specific. Some packages have a lot of libraries and we may not need
>>all them. Something link FIND_PACKAGE(Qt4 REQUIRED GUI XML SQL) should
>>define Qt4_FIND_REQUIRED-GUI, Qt4_FIND_REQUIRED-XML and
>>Qt4_FIND_REQUIRED-SQL.
>>
>>What do you think?
> + ++i;
> + while (i < args.size() && args[i] != "QUIET")
> + {
> + std::string req_var = Name + "_FIND_REQUIRED-" + args[i++];
> + m_Makefile->AddDefinition(req_var.c_str(), "1");
> + }
Please submit the patch to a bug report:
http://www.cmake.org/Bug
Thanks,
-Brad
More information about the CMake
mailing list