Skip to content

Commit

Permalink
fix conversion path->string
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Oct 20, 2023
1 parent 1c88437 commit de57ad5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cpp/multisolver_interface/environment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ std::vector<std::string> XpressDynamicLibraryPotentialPaths() {
if (xpress_home_from_env != nullptr) {
std::filesystem::path prefix(xpress_home_from_env);
#if defined(_MSC_VER) // Windows
potential_paths.push_back(prefix / "\\bin\\xprs.dll");
potential_paths.push_back((prefix / "\\bin\\xprs.dll").string());
#elif defined(__APPLE__) // OS X
potential_paths.push_back(prefix / "/lib/libxprs.dylib");
potential_paths.push_back((prefix / "/lib/libxprs.dylib").string());
#elif defined(__GNUC__) // Linux
potential_paths.push_back(prefix / "/lib/libxprs.so");
potential_paths.push_back((prefix / "/lib/libxprs.so").string());
#else
std::cerr << "OS Not recognized by xpress/environment.cc."
<< " You won't be able to use Xpress.";
Expand Down

0 comments on commit de57ad5

Please sign in to comment.