[llvm] r200595 - Introduce line editor library.
David Fang
fang at csl.cornell.edu
Mon Feb 3 23:56:12 PST 2014
Hi,
Do you have a way to tell cmake where to look for histedit.h? I
happen to be on a system where /usr/include/histedit.h is tool old and has
compilation errors:
/Users/fang/local/src/LLVM-svn/llvm/lib/LineEditor/LineEditor.cpp: In
function 'unsigned char ElCompletionFn(EditLine*, int)':
/Users/fang/local/src/LLVM-svn/llvm/lib/LineEditor/LineEditor.cpp:124:
error: 'EL_GETFP' was not declared in this scope
/Users/fang/local/src/LLVM-svn/llvm/lib/LineEditor/LineEditor.cpp: In
destructor 'llvm::LineEditor::~LineEditor()':
/Users/fang/local/src/LLVM-svn/llvm/lib/LineEditor/LineEditor.cpp:232:
error: 'EL_GETFP' was not declared in this scope
make[2]: ***
[lib/LineEditor/CMakeFiles/LLVMLineEditor.dir/LineEditor.cpp.o] Error 1
However, I have a newer one installed in another location.
Is there a way to point it to use a different root besides passing
-I/path/include
to CMAKE_CXX_FLAGS and passing -L/path/lib to CMAKE_*_LINKER_FLAGS?
It might also be nice to test for histedit meeting some minimum version or
feature requirement.
David
--
David Fang
http://www.csl.cornell.edu/~fang/
More information about the llvm-commits
mailing list