MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015795 | CMake | Modules | public | 2015-10-16 10:41 | 2016-06-10 14:31 |
Reporter | Sam Thursfield | ||||
Assigned To | Rolf Eike Beer | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | CMake 3.3.2 | ||||
Target Version | CMake 3.7 | Fixed in Version | |||
Summary | 0015795: pkg_check_modules produces incorrect results depending on contents of CMakeCache.txt | ||||
Description | I got bitten by a bug involving pkg_check_modules. If I run cmake, then edit my CMakeLists.txt to change the parameters passed to pkg_check_modules, and rerun cmake, it ignores the change that I made to CMakeLists.txt. I needed to delete the CMakeCache.txt file to get the right results. This seems like a cache invalidation bug to me -- a change in the parameters passed to to pkg_check_modules() should cause the cached values to be invalidated. I've attached a small script that reproduces the issue. | ||||
Steps To Reproduce | Use attached script. It uses the 'avahi' library as an example, so needs the avahi-devel or libavahi-dev package (or whatever else your distro calls it) to be installed. Any two pkg-config modules will trigger the same error. Output on my machine: Creating initial CMakeLists.txt Avahi libs should be: avahi-gobject AVAHI LIBS: avahi-gobject;avahi-common;avahi-client;avahi-glib;glib-2.0 Updating pkg_check_modules call Avahi libs should be: avahi-gobject;avahi-common;avahi-client;avahi-glib;glib-2.0 AVAHI LIBS: avahi-gobject;avahi-common;avahi-client;avahi-glib;glib-2.0 Removing cache and trying again Avahi libs should be: avahi-gobject;avahi-common;avahi-client;avahi-glib;glib-2.0 AVAHI LIBS: avahi-gobject;avahi-common;avahi-client;avahi-glib;glib-2.0 | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | testcase.sh (854) 2015-10-16 10:41 https://public.kitware.com/Bug/file/5546/testcase.sh | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-10-16 10:41 | Sam Thursfield | New Issue | |||
2015-10-16 10:41 | Sam Thursfield | File Added: testcase.sh | |||
2015-10-16 10:45 | Sam Thursfield | Note Added: 0039622 | |||
2016-06-02 15:49 | FlorianM | Note Added: 0041131 | |||
2016-06-02 15:51 | FlorianM | Note Edited: 0041131 | bug_revision_view_page.php?bugnote_id=41131#r2126 | ||
2016-06-02 15:52 | Brad King | Assigned To | => Rolf Eike Beer | ||
2016-06-02 15:52 | Brad King | Status | new => assigned | ||
2016-06-02 15:52 | Brad King | Target Version | => CMake 3.7 | ||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042858 | |||
2016-06-10 14:29 | Kitware Robot | Status | assigned => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|