devernay / cminpack

A C/C++ rewrite of the MINPACK software (originally in FORTRAN) for solving nonlinear equations and nonlinear least squares problems
http://devernay.free.fr/hacks/cminpack/
145 stars 63 forks source link

Libs from pkg-config should probably not be used in WIN32 CMake config #30

Closed tadeu closed 5 years ago

tadeu commented 5 years ago

Currently the use of pkg-config in CMinpackConfig.cmake in WIN32 is making it append ;cminpack;m to CMINPACK_LIBRARIES, and this causes linkage problems, since these libraries cannot be found.

Output of the relevant part from CMake:

-- Found PkgConfig: C:/ProgramData/chocolatey/bin/pkg-config.exe (found version "0.28")
-- Checking for module 'cminpack'
--   Found cminpack, version 1.3.6
-- Found CMinpack: C:/prefix/lib/cminpack.lib
-- CMinPack found (include: C:/prefix/include/cminpack-1, libs: optimized;C:/prefix/lib/cminpack.lib;debug;C:/prefix/lib/cminpack.lib;cminpack;m)