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

Fixed an invalid copy of .DLL files when building with CMake on Windows #57

Closed luau-project closed 8 months ago

luau-project commented 8 months ago

What?

I have improved the CMake build generation of shared libraries on Windows by preventing an invalid copy of .DLL files to the testing directory. In the new behavior, PATH environment variable does not need to be patched after building the library for the testing phase to work.

Why?

On the Windows platform, at the build-generation phase with CMake, there was an invalid copy of .DLL files to the testing directory, because the .DLL was not built at the time. Moreover, for the test suite to run properly in the old behavior, PATH environment variable had to be patched -- after build, and before testing -- for the test executables to pickup the built .DLL at run time.

How?

Testing?

Screenshots?