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
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake