--- a/include/minizinc/solvers/MIP/MIP_solverinstance.hpp +++ b/include/minizinc/solvers/MIP/MIP_solverinstance.hpp @@ -80,7 +80,7 @@ template std::string MIPSolverFactory::getDescription(SolverInstanceBase::Options* opt) { - std::string v = "MIP solver plugin, compiled " __DATE__ ", using: " + + std::string v = "MIP solver plugin, compiled using: " + MIPWrapper::getDescription(_factoryOptions, opt); return v; } --- a/lib/flattener.cpp +++ b/lib/flattener.cpp @@ -39,7 +39,7 @@ os << ", build " << MZN_BUILD_REF; } os << std::endl; - os << "Copyright (C) 2014-" << string(__DATE__).substr(7, 4) + os << "Copyright (C) 2014-2026" << " Monash University, NICTA, Data61" << std::endl; } --- a/solvers/MIP/MIP_cplex_wrap.cpp +++ b/solvers/MIP/MIP_cplex_wrap.cpp @@ -244,7 +244,6 @@ } catch (MiniZinc::Error&) { v += "[?? ...cannot open CPLEX env to query version]"; } - v += " Compiled " __DATE__ " " __TIME__; return v; } --- a/solvers/MIP/MIP_gurobi_wrap.cpp +++ b/solvers/MIP/MIP_gurobi_wrap.cpp @@ -45,7 +45,6 @@ MiniZinc::SolverInstanceBase::Options* opt) { ostringstream oss; oss << "MIP wrapper for Gurobi library " << getVersion(factoryOpt, nullptr); - oss << ". Compiled " __DATE__ " " __TIME__; return oss.str(); } --- a/solvers/MIP/MIP_highs_wrap.cpp +++ b/solvers/MIP/MIP_highs_wrap.cpp @@ -91,8 +91,7 @@ std::string MIPHiGHSWrapper::getDescription(FactoryOptions& factoryOpt, MiniZinc::SolverInstanceBase::Options* opt) { std::ostringstream ss; - ss << "MIP wrapper for HiGHS " << getVersion(factoryOpt, opt) << "\n Compiled " - << ". Compiled " __DATE__ " " __TIME__; + ss << "MIP wrapper for HiGHS " << getVersion(factoryOpt, opt); return ss.str(); } @@ -513,4 +512,4 @@ default: break; } -} \ No newline at end of file +} --- a/solvers/MIP/MIP_osicbc_wrap.cpp +++ b/solvers/MIP/MIP_osicbc_wrap.cpp @@ -44,7 +44,6 @@ v += CBC_VERSION; // E.g., 2.9 stable or 2.9.7 latest release v += ", using CLP "; v += CLP_VERSION; - v += " Compiled " __DATE__ " " __TIME__; return v; } --- a/solvers/MIP/MIP_scip_wrap.cpp +++ b/solvers/MIP/MIP_scip_wrap.cpp @@ -178,7 +178,7 @@ MiniZinc::SolverInstanceBase::Options* opt) { ostringstream oss; oss << "MIP wrapper for SCIP " << getVersion(factoryOpt, opt) - << ". Compiled " __DATE__ " " __TIME__; + << ". Compiled"; return oss.str(); } string MIPScipWrapper::getVersion(FactoryOptions& factoryOpt, --- a/solvers/MIP/MIP_xpress_wrap.cpp +++ b/solvers/MIP/MIP_xpress_wrap.cpp @@ -152,7 +152,6 @@ MiniZinc::SolverInstanceBase::Options* opt) { ostringstream oss; oss << " MIP wrapper for FICO Xpress Optimiser version " << getVersion(factoryOpt, opt); - oss << ". Compiled " __DATE__ " " __TIME__; return oss.str(); } --- a/solvers/fzn/fzn_solverinstance.cpp +++ b/solvers/fzn/fzn_solverinstance.cpp @@ -43,7 +43,7 @@ } string FZNSolverFactory::getDescription(SolverInstanceBase::Options* /*opt*/) { - string v = "FZN solver plugin, compiled " __DATE__ " " __TIME__; + string v = "FZN solver plugin"; return v; } --- a/solvers/gecode/gecode_solverinstance.cpp +++ b/solvers/gecode/gecode_solverinstance.cpp @@ -51,7 +51,7 @@ } string GecodeSolverFactory::getDescription(SolverInstanceBase::Options* /*opt*/) { - string v = "Gecode solver plugin, compiled " __DATE__ ", using: Gecode version " + + string v = "Gecode solver plugin, using: Gecode version " + string(GECODE_VERSION); return v; } --- a/solvers/mzn/mzn_solverinstance.cpp +++ b/solvers/mzn/mzn_solverinstance.cpp @@ -38,7 +38,7 @@ } string MZNSolverFactory::getDescription(SolverInstanceBase::Options* /*opt*/) { - string v = "MZN solver plugin, compiled " __DATE__ " " __TIME__; + string v = "MZN solver plugin"; return v; } --- a/solvers/nl/nl_solverinstance.cpp +++ b/solvers/nl/nl_solverinstance.cpp @@ -39,7 +39,7 @@ } string NLSolverFactory::getDescription(SolverInstanceBase::Options* /*opt*/) { - string v = "NL solver plugin, compiled " __DATE__ " " __TIME__; + string v = "NL solver plugin"; return v; }