jump-dev / Xpress.jl

A Julia interface to the FICO Xpress Optimization suite
https://www.fico.com/en/products/fico-xpress-optimization
65 stars 30 forks source link

Problems finding license on Windows #275

Open trulsf opened 2 weeks ago

trulsf commented 2 weeks ago

With the recent version (0.17.0) there is a problem detecting the license file with a standard installation for Windows (not using the Xpress_jll). The environment variable XPRESSDIR will by default be set to the folder of the installation (e.g 'c:\xpressmp') while the license file resides in the 'bin' folder ('c:\xpressmp\bin').

I guess this could be added as one of the candidate locations of the license checking in 'license.jl'. The specific check for Windows based on the use of libdir does not work as the value is empty ("").

odow commented 2 weeks ago

Okay. Looks like we can just add a new line after https://github.com/jump-dev/Xpress.jl/blob/c885d034f626d80c47bcd08980e35e973c93d8a0/src/license.jl#L24-L26