diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-04 20:47:36 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-04 20:47:45 +0200 |
| commit | 641e7622ac98f6e28e82ac2ebb335f278a9120f8 (patch) | |
| tree | 0e2d009ed9a9e76ed2abf0f3733865c71d08c277 | |
| parent | ba66249ab052bb27f49e12a772f366635b08ac2e (diff) | |
Fall back to $PATH when searching for dcpomatic2_openssl.
| -rw-r--r-- | src/lib/cross_linux.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc index 7b807a441..87806b1e6 100644 --- a/src/lib/cross_linux.cc +++ b/src/lib/cross_linux.cc @@ -157,7 +157,12 @@ directory_containing_executable () boost::filesystem::path openssl_path () { - return directory_containing_executable() / "dcpomatic2_openssl"; + boost::filesystem::path p = directory_containing_executable() / "dcpomatic2_openssl"; + if (boost::filesystem::is_regular_file(p)) { + return p; + } + + return "dcpomatic2_openssl"; } |
