/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace {
std::string getHelperPath() {
+ const auto basename = "program_options_test_helper";
auto path = fs::executable_path();
- path.remove_filename() /= "program_options_test_helper";
+ path.remove_filename() /= basename;
+ if (!fs::exists(path)) {
+ path = path.parent_path().parent_path() / basename / basename;
+ }
return path.native();
}