Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't set <externalPkg>_DIR when using a find module (TriBITSPub#299)
When find_package(<externalPkg>) uses a find module Find<exteranlPkg>.cmake instead of a package config file <externalPkg>Config.cmake, the variable. <externalPkg>_DIR is not set. Therefore, it is best to not set <externalPkg>_DIR in the TriBITS-geneated <tplName>Config.cmake file since that is just confusing. NOTE: This is only a situation that comes up when a TriBITS FindTPL<tplName>.cmake module calls find_package(<externalPkg>).
- Loading branch information