Displaying 20 results from an estimated 54 matches for "include_directori".
Did you mean:
include_directory
2009 Aug 06
1
[LLVMdev] MSVC can't Inlcude *.inc files properly
...more about what exactly the problem is?
>
> - Daniel
>
> On Wed, Aug 5, 2009 at 8:04 AM, 罗勇刚(Yonggang Luo)<luoyonggang at gmail.com>
> wrote:
>> It's because of lib/Target/*/TargetInfo/CMakeLists.txt (* is Alpha,
>> ARM and so on);
>> the current line is include_directories(
>> ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
>> and so msvc can't find out those directory properly.
>> but once I changed it to
>> include_directories( ${CMAKE_CURRENT_BINARY_DIR}/../
>> ${CMAKE_CURRENT_SOURCE_DIR}/../ )
>> It's...
2020 Jul 14
5
Multiple documents in one test file
...and bad tests (`RUN:
not llvm-mc %s`) separately. For some features, having both good and bad tests
in one file may improve readability.
b) .debug_line is a global resource. Whenever we add a (valid) .file, we
contribute an entry to the global resource. If we want to test some
characteristics when include_directories[0] is A, and other characteristics
when include_directories[0] is B, we have to use another test file.
The arguments apply to many other types of tests (opt on .ll, llc on .ll and .mir, clang on .c, yaml2obj on .yaml, etc).
I have a patch teaching llvm-mc about an option to split input: https:/...
2005 Jan 24
1
.call file creation
I am curious partly because it has occurred randomly in my asterisk
system. How does one go about creating a .call file for placing a call
between two extensions/phones? I know this has been mentioned and is
probably in one of the wikis somewhere, but I am unsure exactally how to
go about doing it. Can anyone point me in the right direction.
Dan
2010 Nov 03
2
[LLVMdev] LLVM Cmake module?
...M
>> install")
>> endif()
>>
>> # We incorporate the CMake features provided by LLVM:
>> set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
>> "${LLVM_ROOT}/share/llvm/cmake")
>> include(LLVM)
>> # Now set the header and library paths:
>> include_directories( ${LLVM_ROOT}/include )
>> link_directories( ${LLVM_ROOT}/lib )
>> # Let's suppose we want to build a JIT compiler with support for
>> # binary code (no interpreter):
>> llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native core)
>> # Finally, we link th...
2020 Jul 14
2
Multiple documents in one test file
...tely. For some features, having both good and
> bad tests
> in one file may improve readability.
> b) .debug_line is a global resource. Whenever we add a (valid) .file, we
> contribute an entry to the global resource. If we want to test some
> characteristics when include_directories[0] is A, and other
> characteristics
> when include_directories[0] is B, we have to use another test file.
>
> The arguments apply to many other types of tests (opt on .ll, llc on
> .ll and .mir, clang on .c, yaml2obj on .yaml, etc).
>
> I have a patch t...
2010 Nov 03
0
[LLVMdev] LLVM Cmake module?
..._ROOT (${LLVM_ROOT}) is not a valid LLVM
> install")
> endif()
> # We incorporate the CMake features provided by LLVM:
> set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
> "${LLVM_ROOT}/share/llvm/cmake")
> include(LLVM)
> # Now set the header and library paths:
> include_directories( ${LLVM_ROOT}/include )
> link_directories( ${LLVM_ROOT}/lib )
> # Make sure to include the headers required for Java and JNI.
> FIND_PACKAGE(Java REQUIRED)
> FIND_PACKAGE(JNI REQUIRED)
> INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH})
> INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH2})
>...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...ackage work, you need to
# add it to CMAKE_MODULE_PATH if you want to include AddLLVM, e.g., if
# you want to use add_llvm_loadable_module.
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{LLVM_DIR}")
find_package(LLVM REQUIRED CONFIG)
include(AddLLVM)
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIBRARY_DIRS})
On Sun, Oct 9, 2016 at 2:03 PM, Timo Janssen via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi,
>
>
> I am sorry but I really am not good with cmake yet.
>
> I made one mistake I used MODULE instead of C...
2012 Jul 07
2
[LLVMdev] Problem in LLVM CMake modules
...lvm )
message(FATAL_ERROR "LLVM_ROOT (${LLVM_ROOT}) is not a valid LLVM install")
endif()
# We incorporate the CMake features provided by LLVM:
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${LLVM_ROOT}/share/llvm/cmake")
include(LLVMConfig)
# Now set the header and library paths:
include_directories( ${LLVM_ROOT}/include )
link_directories( ${LLVM_ROOT}/lib )
add_definitions( ${LLVM_DEFINITIONS} )
# Make sure to include the headers required for Java and JNI.
FIND_PACKAGE(Java REQUIRED)
FIND_PACKAGE(JNI REQUIRED)
INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PAT...
2012 Jul 23
2
[LLVMdev] building a pass with cmake
...quot;)
include(LLVMConfig)
find_package(LLVM)
if( NOT LLVM_FOUND )
message(FATAL_ERROR "LLVM package can't be found. Set CMAKE_PREFIX_PATH
variable to LLVM's installation prefix.")
endif()
# Define add_llvm_* macro's.
include(AddLLVM)
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIBRARY_DIRS})
add_llvm_loadable_module( LLVMHello
Hello.cpp
)
Furthermore, I created a separate build and install directories in order to
build and install my pass.
cd Hello2_build
cmake ../Hello2 -DCMAKE_INSTALL_PREFIX=../Hello2_install/
--...
2012 Oct 05
4
[LLVMdev] problem with my LLVM pass
...CMake.html#developing-llvm-pass-out-of-source
i follow the instruction from the link, and create in my ~/test/
directory the CMakeLists.txt with following content:
$cat test/CMakeLists.txt
find_package(LLVM)
# Define add_llvm_* macro's.
include(AddLLVM)
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIBRARY_DIRS})
add_subdirectory(Hello)
======
inside test/, i put Hello/ directory, copied from
llvm-3.1.src/lib/Transforms/Hello.
then inside test/, i tried to compile:
test$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler ide...
2010 Feb 10
1
[LLVMdev] llvm in a subdirectory with cmake
...ample:
demo/
llvm/
demo.cpp
CMakeLists.txt
where CMakeLists.txt is as follows:
# ----------------------------- Start
of CMakeLists.txt ----------------------------------------
project(DEMO)
cmake_minimum_required(VERSION 2.6.1)
add_subdirectory("${DEMO_SOURCE_DIR}/llvm")
include_directories(
"${LLVM_SOURCE_DIR}/include"
"${LLVM_BINARY_DIR}/include"
)
set(LLVM_LINK_COMPONENTS core jit interpreter native)
add_llvm_executable(DEMO demo.cpp)
# ----------------------------- End
of CMakeLists.txt ----------------------------------------
As you can see with this...
2012 Aug 10
1
[LLVMdev] how to compile my LLVM project with CMake (on Windows)?
hi,
i already successfully compiled & installled LLVM 3.1 on Windows (with
CMake & Visual Studio 2008). next, i am trying to understand how to
create a standalone LLVM project, and compile that on Windows (also
using CMake & Visual Studio 2008).
to start, i picked up the "examples\BrainF" project, renamed it to
"examples\BrainF2" (and i still put BrainF2 under the
2013 Jan 19
0
[LLVMdev] Embed LLVM/Clang in our project
...ectory. Is the 'make install'
> step necessary even though I'm compiling llvm along with my code?
If you wish to use LLVM/Clang whitout installing it, you must add both
the build output header path and the source header path (in this order)
to your list of include paths, like this:
include_directories( ${LLVM_BUILD_DIR}/include ${LLVM_SOURCE_DIR}/include )
Replace LLVM_SOURCE_DIR/LLVM_BUILD_DIR with the respective directories.
Same for Clang
2012 Jul 23
0
[LLVMdev] building a pass with cmake
...No such file or
> directory
> Hello2/Hello.cpp:21: error: ‘llvm’ is not a namespace-name
> ...
>
> Your feedback is very welcome.
I think this is the same problem that was reported here a few weeks
ago. IIRC LLVM_INCLUDE_DIRS and LLVM_LIBRARY_DIRS are wrong after
install. Try with
include_directories( ${LLVM_ROOT}/include )
link_directories( ${LLVM_ROOT}/lib )
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...it to CMAKE_MODULE_PATH if you want to include AddLLVM, e.g., if
> # you want to use add_llvm_loadable_module.
> set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{LLVM_DIR}")
> find_package(LLVM REQUIRED CONFIG)
> include(AddLLVM)
> add_definitions(${LLVM_DEFINITIONS})
> include_directories(${LLVM_INCLUDE_DIRS})
> link_directories(${LLVM_LIBRARY_DIRS})
>
>
>
> On Sun, Oct 9, 2016 at 2:03 PM, Timo Janssen via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hi,
>>
>>
>> I am sorry but I really am not good with cmake yet.
>>...
2013 Jan 19
2
[LLVMdev] Embed LLVM/Clang in our project
Hi All,
We want to compile LLVM/Clang and use the resulting headers/libraries
in our project. But we compile it during out build process. I can build
LLVM/Clang by adding it to our cmakelists.txt but when our code tries to
use one of the headers (clang/CodeGen/ModuleBuilder.h), its not found as
it doesnt exist. If I do a 'make install' in the llvm directory, then
the file is
2016 Oct 09
3
Embedding llvm as a git submodule in Project
Hi all.
I want to use llvm in my project and I want to make llvm a git submodule
in my project.
http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project
At this in the documentation it claims to describe how to embed llvm
into a project. I tried it that way but it doesn't work, because there
isn't any findLLVM.cmake in the llvm/cmake/modules directory anymore (i
don't
2020 Jul 14
2
Multiple documents in one test file
...llvm-mc %s`) separately. For some features, having both good and bad
> tests
> in one file may improve readability.
> b) .debug_line is a global resource. Whenever we add a (valid) .file, we
> contribute an entry to the global resource. If we want to test some
> characteristics when include_directories[0] is A, and other characteristics
> when include_directories[0] is B, we have to use another test file.
>
> The arguments apply to many other types of tests (opt on .ll, llc on .ll
> and .mir, clang on .c, yaml2obj on .yaml, etc).
>
> I have a patch teaching llvm-mc about an op...
2012 Oct 18
0
[LLVMdev] problem with my LLVM pass
...package LLVM.
This error occurs when llvm-config is not in the path. I tried the same
thing by copying the CMake snippets from the above page into a new file:
$ cd test
$ cat CMakeLists.txt
find_package(LLVM)
# Define add_llvm_* macro's.
include(AddLLVM)
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIBRARY_DIRS})
add_subdirectory(<pass name>)
add_llvm_loadable_module(LLVMPassname
Pass.cpp
)
$ cmake .
Everything worked at this stage.
But if I removed llvm-config from my PATH, I get the following error
instead:
$ cmake .
....
CMake...
2020 Mar 26
12
Upgrading LLVM's minimum required CMake version
...build, which should give a good sense of how conservative they are about compiler requirements
CMake 3.11 (released March 28th 2018):
* add_library() and add_executable() can be called without sources as long as target_sources() is used later
* target_compile_{definitions,features,options}, target_include_directories(), target_sources(), and target_link_libraries() can set the corresponding INTERFACE_* properties on imported targets
* COMPILE_DEFINITIONS supports generator expressions
* COMPILE_OPTIONS source file property added
* INCLUDE_DIRECTORIES source file property added
* Interface libraries support cu...