MantisBT - CMake
View Issue Details
0006117CMakeModulespublic2007-12-04 07:102008-02-07 13:20
Alban Browaeys 
 
normalblockalways
closedfixed 
 
 
0006117: [FIX] FindPkgConfig has a bug . On second run of cmake it succeed even if the module is still missing
On first run FindPkgConfig works properly but on second run it does not check if ${prefix}_FOUND is true.

Attached patch from Bjoern Ricks fixes it (from #opensync on freenode).

Regards
Alban
Fixed in CVS, and should be in 2.4.8 RC 6
No tags attached.
diff FindPKgConfig_checkifprefixfoundbeforereadingcache.diff (1,038) 2007-12-04 07:10
https://public.kitware.com/Bug/file/1238/FindPKgConfig_checkifprefixfoundbeforereadingcache.diff
diff FindPkgConfig_preventcachenotfound2.cmake.diff (1,013) 2008-02-04 10:49
https://public.kitware.com/Bug/file/1300/FindPkgConfig_preventcachenotfound2.cmake.diff
Issue History
2007-12-04 07:10Alban BrowaeysNew Issue
2007-12-04 07:10Alban BrowaeysFile Added: FindPKgConfig_checkifprefixfoundbeforereadingcache.diff
2007-12-14 12:56Bill HoffmanStatusnew => closed
2007-12-14 12:56Bill HoffmanResolutionopen => fixed
2007-12-14 12:56Bill HoffmanAdditional Information Updated
2008-02-04 10:48Alban BrowaeysStatusclosed => feedback
2008-02-04 10:48Alban BrowaeysResolutionfixed => reopened
2008-02-04 10:48Alban BrowaeysNote Added: 0010379
2008-02-04 10:49Alban BrowaeysFile Added: FindPkgConfig_preventcachenotfound2.cmake.diff
2008-02-07 13:20Bill HoffmanStatusfeedback => closed
2008-02-07 13:20Bill HoffmanNote Added: 0010424
2008-02-07 13:20Bill HoffmanResolutionreopened => fixed

Notes
(0010379)
Alban Browaeys   
2008-02-04 10:48   
the issue also apply to pkg_check_module :
patch attached
(0010424)
Bill Hoffman   
2008-02-07 13:20   
$ cvs commit -m "BUG: fix for bug 6117 pkgconfig" FindPkgConfig.cmake
/cvsroot/CMake/CMake/Modules/FindPkgConfig.cmake,v <-- FindPkgConfig.cmake
new revision: 1.7; previous revision: 1.6

Fixed in CVS, should be in 2.6.