* \brief
* Implements gmx::CommandLineProgramContext.
*
+ * See \linktodevmanual{relocatable-binaries,developer guide section on
+ * relocatable binaries} for explanation of the searching logic.
+ *
* \author Teemu Murtola <teemu.murtola@gmail.com>
* \ingroup module_commandline
*/
#include "buildinfo.h"
#include "gromacs/utility/exceptions.h"
-#include "gromacs/utility/file.h"
#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/path.h"
#include "gromacs/utility/stringutil.h"
}
/*! \brief
- * Finds the library data files based on path of the binary.
+ * Generic function to find data files based on path of the binary.
*
* \param[in] binaryPath Absolute path to the binary.
* \param[out] bSourceLayout Set to `true` if the binary is run from
// directory.
#if (defined CMAKE_SOURCE_DIR && defined CMAKE_BINARY_DIR)
std::string buildBinPath;
-#ifdef CMAKE_INTDIR
+#ifdef CMAKE_INTDIR /*In multi-configuration build systems the output subdirectory*/
buildBinPath = Path::join(CMAKE_BINARY_DIR, "bin", CMAKE_INTDIR);
#else
buildBinPath = Path::join(CMAKE_BINARY_DIR, "bin");