Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 28b81f3784 | |||
| 9037ef7b9d |
12
deps/build.jl
vendored
12
deps/build.jl
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user