Re: [CMake] find_package with config file always set xyz_FOUND to true?

2011-08-30 Thread Michael Hertling
On 08/30/2011 12:02 AM, Anton Deguet wrote: > Hello, > > I am trying to use the following syntax: > find_package (xyz REQUIRED xyz1 xyz2) using a config file, i.e. NOT > Findxyz.cmake. > > I have a file named xyz-config.cmake that contains some code to check if the > required components are ava

[CMake] find_package with config file always set xyz_FOUND to true?

2011-08-29 Thread Anton Deguet
Hello, I am trying to use the following syntax: find_package (xyz REQUIRED xyz1 xyz2) using a config file, i.e. NOT Findxyz.cmake. I have a file named xyz-config.cmake that contains some code to check if the required components are available or not (based on how xyz was compiled). Ideally I w