Fix CMake error with stand-alone cling

Use absolute PATH when checking the existance of the textinput directory. This prevent this error:

CMake Error at cmake/modules/AddLLVM.cmake:312 (add_library):
  Cannot find source file:

    C:/build/workspace/cling-test/src/core/textinput/src/textinput/Editor.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
Call Stack (most recent call first):
  tools/cling/CMakeLists.txt:142 (llvm_add_library)
  tools/cling/lib/UserInterface/CMakeLists.txt:17 (add_cling_library)
This commit is contained in:
Bertrand Bellenot 2015-04-01 09:47:43 +02:00 committed by sftnight
parent fb159e163c
commit ff885342b2

View File

@ -9,7 +9,7 @@
set(LLVM_REQUIRES_EH true)
set(LLVM_REQUIRES_RTTI true)
if(NOT EXISTS textinput)
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/textinput)
set(TEXTINPUTSRC ${CMAKE_SOURCE_DIR}/core/textinput/src/)
include_directories(${TEXTINPUTSRC})
endif()