Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPLEX binaries are not allowed to be placed in folder with general name #97

Closed
JorgeGarciaCastillo opened this issue Nov 27, 2016 · 1 comment · Fixed by #263
Closed
Labels
Installation troubles Issues in which the user had trouble installing

Comments

@JorgeGarciaCastillo
Copy link

In file build.jl there is the following code:

wincpxvers = ["126","1261","1262","1263"]
if is_windows()
    for v in reverse(wincpxvers)
        env = "CPLEX_STUDIO_BINARIES$v"
        if haskey(ENV,env)
            for d in split(ENV[env],';')
                contains(d,"cplex") || continue
                if v == "126" # annoying inconsistency
                    push!(libnames,joinpath(d,"cplex1260"))
                else
                    push!(libnames,joinpath(d,"cplex$(v)"))
                end
            end
        end
    end
end

The line contains(d,"cplex") || continue forces the path to contain exactly the word cplex, which I believe is not necessary. The only file needed is the .dll with could be placed in an arbitray folder

@mlubin
Copy link
Member

mlubin commented Nov 27, 2016

We'll accept pull requests if you present a clear use case. Why wouldn't the cplex path have "cplex" in it?

@odow odow added the Installation troubles Issues in which the user had trouble installing label Oct 30, 2019
@odow odow closed this as completed in #263 Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Installation troubles Issues in which the user had trouble installing
Development

Successfully merging a pull request may close this issue.

3 participants