On 03/18/2013 05:17 PM, Ward Fisher wrote:
Good afternoon Pedro,
On 3/18/13 2:36 PM, Pedro Vicente wrote:
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Both of these are Unix .
Why the need for a Pkg-Config dependency on a CMake builld ?
Pkg-Config is available for Windows as well; it was initially carried over as
part of the conversion from autotools based builds. The failure to find
pkg-config.exe on Windows is not a fatal error; the build should continue. I
believe the original idea was to have the cmake-based build use pkg-config
(when available) to generate the appropriate files to make netcdf more visible
to other projects via pkg-config. This is likely unnecessary; I will evaluate
if we still need it, and what it would take to complete that functionality.
If you do end up using pkg-config, instead of:
INCLUDE (${CMAKE_ROOT}/Modules/FindPkgConfig.cmake)
do:
FIND_PACKAGE(PkgConfig QUIET)
This will make it silent in the case of not finding it. But it doesn't look
like you make use of it at the moment.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder Office FAX: 303-415-9702
3380 Mitchell Lane orion@xxxxxxxx
Boulder, CO 80301 http://www.nwra.com