From: José Fonseca Date: Tue, 8 May 2012 14:02:51 +0000 (+0100) Subject: Fix scripts absolute earch path (issue #76). X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=7c3ea25553564f750b5f5bffea028786bf96f4ed Fix scripts absolute earch path (issue #76). Wrongly copy'n'pasted from wrappers code. Probably never actually used, as relative search paths where successful. Thanks to hramrach for spotting it. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3aaec6e..70ebd87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -215,8 +215,8 @@ else () set (LIB_INSTALL_DIR lib/${CMAKE_PROJECT_NAME}) endif () -set(SCRIPTS_INSTALL_DIR ${LIB_INSTALL_DIR}/scripts) -set(WRAPPER_INSTALL_DIR ${LIB_INSTALL_DIR}/wrappers) +set (SCRIPTS_INSTALL_DIR ${LIB_INSTALL_DIR}/scripts) +set (WRAPPER_INSTALL_DIR ${LIB_INSTALL_DIR}/wrappers) # Expose the binary/install directories to source # @@ -226,7 +226,7 @@ set(WRAPPER_INSTALL_DIR ${LIB_INSTALL_DIR}/wrappers) add_definitions( -DAPITRACE_BINARY_DIR="${CMAKE_BINARY_DIR}" -DAPITRACE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}" - -DAPITRACE_WRAPPER_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${WRAPPER_INSTALL_DIR}" + -DAPITRACE_LIB_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}" ) diff --git a/common/trace_resource.cpp b/common/trace_resource.cpp index 206e6da..8b29cfb 100644 --- a/common/trace_resource.cpp +++ b/common/trace_resource.cpp @@ -69,7 +69,7 @@ findScript(const char *scriptFilename) #ifndef _WIN32 // Try absolute install directory - scriptPath = APITRACE_WRAPPER_INSTALL_DIR; + scriptPath = APITRACE_LIB_INSTALL_DIR "/scripts"; scriptPath.join(scriptFilename); if (scriptPath.exists()) { return scriptPath; diff --git a/common/trace_tools_trace.cpp b/common/trace_tools_trace.cpp index ad355ab..cad2b0a 100644 --- a/common/trace_tools_trace.cpp +++ b/common/trace_tools_trace.cpp @@ -84,7 +84,7 @@ findWrapper(const char *wrapperFilename) #ifndef _WIN32 // Try absolute install directory - wrapperPath = APITRACE_WRAPPER_INSTALL_DIR; + wrapperPath = APITRACE_LIB_INSTALL_DIR "/wrappers"; wrapperPath.join(wrapperFilename); if (wrapperPath.exists()) { return wrapperPath;