X-Git-Url: https://git.cworth.org/git?p=apitrace;a=blobdiff_plain;f=cli%2Fcli_resources.cpp;h=a533b01e0300910b42e0bc27347fd80838e58be5;hp=255a98b662a700a440750a62e200553c4b193b16;hb=4cf9606b3c75478fe7b8258d89b504f854e1de21;hpb=ae423964d8b9e4cae2a180e20879205aeeeca27f diff --git a/cli/cli_resources.cpp b/cli/cli_resources.cpp index 255a98b..a533b01 100644 --- a/cli/cli_resources.cpp +++ b/cli/cli_resources.cpp @@ -112,12 +112,14 @@ findScript(const char *scriptFilename) // Try relative build directory // XXX: Just make build and install directory layout match - scriptPath = processDir; +#if defined(APITRACE_SOURCE_DIR) + scriptPath = APITRACE_SOURCE_DIR; scriptPath.join("scripts"); scriptPath.join(scriptFilename); if (scriptPath.exists()) { return scriptPath; } +#endif // Try relative install directory scriptPath = processDir;