View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013175 | CMake | CMake | public | 2012-04-29 18:08 | 2014-10-06 10:32 | ||||
Reporter | Derek Dai | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | ||||||
Summary | 0013175: FindPkgConfig.cmake should respect environment variable PKG_CONFIG just like autotools do | ||||||||
Description | if(NOT PKG_CONFIG_EXECUTABLE) set(PKG_CONFIG_EXECUTABLE $ENV{PKG_CONFIG}) if(NOT PKG_CONFIG_EXECUTABLE) find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config DOC "pkg-config executable") endif(NOT PKG_CONFIG_EXECUTABLE) endif(NOT PKG_CONFIG_EXECUTABLE) | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0029370) Rolf Eike Beer (developer) 2012-04-30 09:49 |
Can you point to a documentation of how that really works in autoconf, i.e. if one should pass also command line arguments in there and stuff like that? |
(0029371) Derek Dai (reporter) 2012-04-30 10:26 |
Sorry, I am not that familiar with autotools. Currently, the only way I know to pass PKG_CONFIG to autools is environment variable. Just like configure output below ./configure --help ... Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CXX C++ compiler command CXXFLAGS C++ compiler flags CPP C preprocessor CXXCPP C++ preprocessor CCAS assembler compiler command (defaults to CC) CCASFLAGS assembler compiler flags (defaults to CFLAGS) PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path BASE_DEPENDENCIES_CFLAGS C compiler flags for BASE_DEPENDENCIES, overriding pkg-config BASE_DEPENDENCIES_LIBS linker flags for BASE_DEPENDENCIES, overriding pkg-config CAIRO_BACKEND_CFLAGS C compiler flags for CAIRO_BACKEND, overriding pkg-config CAIRO_BACKEND_LIBS linker flags for CAIRO_BACKEND, overriding pkg-config GMODULE_CFLAGS C compiler flags for GMODULE, overriding pkg-config GMODULE_LIBS linker flags for GMODULE, overriding pkg-config XMKMF Path to xmkmf, Makefile generator for X Window System COLORD_CFLAGS C compiler flags for COLORD, overriding pkg-config COLORD_LIBS linker flags for COLORD, overriding pkg-config GTKDOC_DEPS_CFLAGS C compiler flags for GTKDOC_DEPS, overriding pkg-config GTKDOC_DEPS_LIBS linker flags for GTKDOC_DEPS, overriding pkg-config |
(0030414) David Cole (manager) 2012-08-11 21:35 |
Sending old, never assigned issues to the backlog. (The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...) If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^] It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing. |
(0035218) Brad King (manager) 2014-02-27 10:34 |
A patch to fix this has been contributed: FindPkgConfig: Prefer PKG_CONFIG to find pkg-config http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c53b5cd2 [^] |
(0036921) Robert Maynard (manager) 2014-10-06 10:32 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2012-04-29 18:08 | Derek Dai | New Issue | |
2012-04-30 09:49 | Rolf Eike Beer | Note Added: 0029370 | |
2012-04-30 10:26 | Derek Dai | Note Added: 0029371 | |
2012-08-11 21:35 | David Cole | Status | new => backlog |
2012-08-11 21:35 | David Cole | Note Added: 0030414 | |
2014-02-27 10:34 | Brad King | Note Added: 0035218 | |
2014-02-27 10:34 | Brad King | Status | backlog => resolved |
2014-02-27 10:34 | Brad King | Resolution | open => fixed |
2014-02-27 10:34 | Brad King | Fixed in Version | => CMake 3.1 |
2014-02-27 10:34 | Brad King | Target Version | => CMake 3.1 |
2014-10-06 10:32 | Robert Maynard | Note Added: 0036921 | |
2014-10-06 10:32 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |