View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012620CMakeModulespublic2011-12-12 11:282012-07-09 06:52
ReporterAurélien Gâteau 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSUbuntuOS Version12.04
Product VersionCMake 2.8.6 
Target VersionFixed in Version 
Summary0012620: FindPkgConfig does not fail when pkg-config is not installed
DescriptionIf pkg-config is not installed and one calls "find_package(PkgConfig REQUIRED)" in a CMakeLists.txt, cmake does not fail.
Steps To Reproduce- Make sure pkg-config is not installed
- Create a CMakeLists.txt with the line
  find_package(PkgConfig REQUIRED)
- Run cmake => no failure
TagsNo tags attached.
Attached Filespatch file icon pkg-config-required.patch [^] (982 bytes) 2012-01-16 12:04 [Show Content]

 Relationships

  Notes
(0028321)
Yury G. Kudryashov (reporter)
2012-01-16 12:09

The attached patch fixes the problem.

Offtopic: Aurélien, where do you need `find_package(PkgConfig REQUIRED)`?
Offtopic2: What does PKG_CONFIG_VERSION mean? It seem to be always equal to 1.
(0028352)
Aurélien Gâteau (reporter)
2012-01-18 09:22

Thanks Yury for the patch. I am using 'find_package(PkgConfig REQUIRED)' to find libindicate-qt. I should probably write a FindIndicateQt.cmake file, but since the lib is Unix only, pkg-config was good enough for now.
(0028376)
Brad King (manager)
2012-01-20 08:44

I applied Yuri's patch after he posted it to our dev list:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=55c3435d [^]

Thanks!
(0029958)
David Cole (manager)
2012-07-09 06:52

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-12-12 11:28 Aurélien Gâteau New Issue
2012-01-16 12:04 Yury G. Kudryashov File Added: pkg-config-required.patch
2012-01-16 12:09 Yury G. Kudryashov Note Added: 0028321
2012-01-18 09:22 Aurélien Gâteau Note Added: 0028352
2012-01-20 08:44 Brad King Note Added: 0028376
2012-01-20 08:44 Brad King Status new => resolved
2012-01-20 08:44 Brad King Resolution open => fixed
2012-01-20 08:44 Brad King Assigned To => Brad King
2012-07-09 06:52 David Cole Note Added: 0029958
2012-07-09 06:52 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team