From 126de1b8a4d95ceaffc3bba47c4b92ba1a9ff7cf Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Fri, 16 Dec 2016 00:31:43 -0500 Subject: [PATCH] revert usage info: interfacePath must be absolute. --- cmake/GtsamCythonWrap.cmake | 1 + wrap/wrap.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/GtsamCythonWrap.cmake b/cmake/GtsamCythonWrap.cmake index 8f5450988..eb0a6774b 100644 --- a/cmake/GtsamCythonWrap.cmake +++ b/cmake/GtsamCythonWrap.cmake @@ -32,6 +32,7 @@ endfunction() function(wrap_library_cython interface_header generated_files_path extra_imports setup_py_in_path) # Wrap codegen interface # Extract module path and name from interface header file name + # wrap requires interfacePath to be *absolute* get_filename_component(interface_header "${interface_header}" ABSOLUTE) get_filename_component(module_path "${interface_header}" PATH) get_filename_component(module_name "${interface_header}" NAME_WE) diff --git a/wrap/wrap.cpp b/wrap/wrap.cpp index 26293658e..a8147ed7e 100644 --- a/wrap/wrap.cpp +++ b/wrap/wrap.cpp @@ -26,7 +26,7 @@ using namespace std; void usage() { cerr << "wrap parses an interface file and produces a MATLAB or Cython toolbox" << endl; cerr << "usage: wrap [--matlab|--cython] interfacePath moduleName toolboxPath cythonImports" << endl; - cerr << " interfacePath : path to directory of module interface file" << endl; + cerr << " interfacePath : *absolute* path to directory of module interface file" << endl; cerr << " moduleName : the name of the module, interface file must be called moduleName.h" << endl; cerr << " toolboxPath : the directory in which to generate the wrappers" << endl; cerr << " cythonImports : extra imports for Cython pxd header file" << endl;