Compare commits

2 Commits

Author SHA1 Message Date
28b81f3784 Update build.jl 2020-08-14 14:59:02 -05:00
9037ef7b9d Add CPLEX 12.10 2020-08-14 14:35:12 -05:00

12
deps/build.jl vendored
View File

@@ -14,7 +14,7 @@ function write_depsfile(path)
end end
base_env = "CPLEX_STUDIO_BINARIES" base_env = "CPLEX_STUDIO_BINARIES"
const cpxvers = ["128", "1280", "129", "1290"] const cpxvers = ["128", "1280", "129", "1290", "1210", "12100"]
libnames = String["cplex"] libnames = String["cplex"]
for v in reverse(cpxvers) for v in reverse(cpxvers)
@@ -28,18 +28,16 @@ for v in reverse(cpxvers)
end end
end end
const wincpxvers = ["128", "1280", "129", "1290"] const wincpxvers = ["128", "1280", "129", "1290", "1210", "12100"]
@static if Sys.iswindows() @static if Sys.iswindows()
for v in reverse(wincpxvers) for v in reverse(wincpxvers)
env = base_env * v env = base_env * v
if haskey(ENV,env) if haskey(ENV,env)
for d in split(ENV[env],';') for d in split(ENV[env],';')
occursin("cplex", d) || continue occursin("cplex", d) || continue
if length(v) == 3 push!(libnames,joinpath(d,"cplex$(v)00"))
push!(libnames,joinpath(d,"cplex$(v)0")) push!(libnames,joinpath(d,"cplex$(v)0"))
else push!(libnames,joinpath(d,"cplex$(v)"))
push!(libnames,joinpath(d,"cplex$(v)"))
end
end end
end end
end end