Why the if? If there is no pkgconfig found it the macro will just do nothing. And pkgconfig could even work on Windows if it is properly installed.
That should be HINTS:
From cmake help:
Search the paths specified by the HINTS option. These should be paths computed by system introspection, such as a hint provided by the location of another item already found. Hard-coded guesses should be specified with the PATHS option.
- Rolf Eike
On October 14th, 2012, 11:43 p.m., Rex Dieter wrote:
Review request for kdelibs.
By Rex Dieter.
Updated Oct. 14, 2012, 11:43 p.m.
Description
Add pkgconfig hints to FindSamba.cmake, helps find samba4 libs on non-standard-ish locations.
|
Testing
Tested on fedora 18 against samba-4.0-rc2
|
Diffs
- cmake/modules/FindSamba.cmake (16522c6)
View Diff
|