View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0012620 | CMake | Modules | public | 2011-12-12 11:28 | 2012-07-09 06:52 | ||||
Reporter | Aurélien Gâteau | ||||||||
Assigned To | Brad King | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | Linux | OS | Ubuntu | OS Version | 12.04 | ||||
Product Version | CMake 2.8.6 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0012620: FindPkgConfig does not fail when pkg-config is not installed | ||||||||
Description | If 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 | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | ![]() | ||||||||
Relationships | |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |