search for: find_package

Displaying 20 results from an estimated 93 matches for "find_package".

2013 Nov 19
2
[LLVMdev] proposed patch to default to isl-only polly
Tobias, Can we add something like the following to polly 3.4? Index: CMakeLists.txt =================================================================== --- CMakeLists.txt (revision 195142) +++ CMakeLists.txt (working copy) @@ -81,9 +81,14 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PAT FIND_PACKAGE(Isl REQUIRED) FIND_PACKAGE(Gmp REQUIRED) -FIND_PACKAGE(Cloog) FIND_PACKAGE(Pluto) +option(POLLY_USE_CLOOG "Build Polly with Cloog support" OFF) +if (POLLY_USE_CLOOG) + # Build Cloog support in Polly (default is ISL-only). + FIND_PACKAGE(Cloog) +endif(POLLY_USE_CLOOG) + option(POLLY...
2013 Nov 20
2
[LLVMdev] proposed patch to default to isl-only polly
...3.4? >> >> Index: CMakeLists.txt >> =================================================================== >> --- CMakeLists.txt (revision 195142) >> +++ CMakeLists.txt (working copy) >> @@ -81,9 +81,14 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PAT >> >> FIND_PACKAGE(Isl REQUIRED) >> FIND_PACKAGE(Gmp REQUIRED) >> -FIND_PACKAGE(Cloog) >> FIND_PACKAGE(Pluto) >> >> +option(POLLY_USE_CLOOG "Build Polly with Cloog support" OFF) >> +if (POLLY_USE_CLOOG) >> + # Build Cloog support in Polly (default is ISL-only)....
2013 Nov 20
1
[LLVMdev] proposed patch to default to isl-only polly
...>>> =================================================================== >>>> --- CMakeLists.txt (revision 195142) >>>> +++ CMakeLists.txt (working copy) >>>> @@ -81,9 +81,14 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PAT >>>> >>>> FIND_PACKAGE(Isl REQUIRED) >>>> FIND_PACKAGE(Gmp REQUIRED) >>>> -FIND_PACKAGE(Cloog) >>>> FIND_PACKAGE(Pluto) >>>> >>>> +option(POLLY_USE_CLOOG "Build Polly with Cloog support" OFF) >>>> +if (POLLY_USE_CLOOG) >>>&gt...
2013 Nov 20
0
[LLVMdev] proposed patch to default to isl-only polly
...dex: CMakeLists.txt >>> =================================================================== >>> --- CMakeLists.txt (revision 195142) >>> +++ CMakeLists.txt (working copy) >>> @@ -81,9 +81,14 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PAT >>> >>> FIND_PACKAGE(Isl REQUIRED) >>> FIND_PACKAGE(Gmp REQUIRED) >>> -FIND_PACKAGE(Cloog) >>> FIND_PACKAGE(Pluto) >>> >>> +option(POLLY_USE_CLOOG "Build Polly with Cloog support" OFF) >>> +if (POLLY_USE_CLOOG) >>> + # Build Cloog support i...
2013 Nov 19
0
[LLVMdev] proposed patch to default to isl-only polly
...ing like the following to polly 3.4? > > Index: CMakeLists.txt > =================================================================== > --- CMakeLists.txt (revision 195142) > +++ CMakeLists.txt (working copy) > @@ -81,9 +81,14 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PAT > > FIND_PACKAGE(Isl REQUIRED) > FIND_PACKAGE(Gmp REQUIRED) > -FIND_PACKAGE(Cloog) > FIND_PACKAGE(Pluto) > > +option(POLLY_USE_CLOOG "Build Polly with Cloog support" OFF) > +if (POLLY_USE_CLOOG) > + # Build Cloog support in Polly (default is ISL-only). > + FIND_PACKAGE(Cloog)...
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
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup") endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter") # While just setting LLVM_DIR will make find_package 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}) includ...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...E_SHARED_LINKER_FLAGS} -undefined > dynamic_lookup") > endif() > > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") > > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra > -Wno-unused-parameter") > > # While just setting LLVM_DIR will make find_package 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_definitio...
2013 Nov 19
0
[LLVMdev] disabling cloog in llvm 3.4
Tobias, Would it be possible to add a cmake option to disable the use of cloog in the polly build for 3.4? Currently the toplevel CMakeLists.txt in polly has... FIND_PACKAGE(Isl REQUIRED) FIND_PACKAGE(Gmp REQUIRED) FIND_PACKAGE(Cloog) FIND_PACKAGE(Pluto) with no cmake option to avoid executing... FIND_PACKAGE(Cloog) I have been deinstalling the fink cloog packages, so that cmake/FindCloog.cmake doesn't find the CLOOG_INCLUDE_DIR/CLOOG_LIBRARY and set CLOOG_FO...
2016 Jul 23
2
Improving deb packages
...3.8+ have regressions. I'm not here to blame anybody. I would like to identify the issues and discuss long term solutions. I started with building very simple test framework that checks different Ubuntu/Debian versions and currently supported LLVM versions. The first and only test just checks find_package(LLVM CONFIG) cmake function. https://github.com/chfast/llvm-apt-tests/blob/master/CMakeLists.txt I've tested {3.8, 3.9, 4.0} x {xenial, jessie} using docker images and Travis CI. https://travis-ci.org/chfast/llvm-apt-tests/builds/146508275 As you can see, only the 3.8 on Jessie passed the test...
2012 Oct 05
4
[LLVMdev] problem with my LLVM pass
hi, i am wondering if this link is still updated? http://www.llvm.org/docs/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...
2012 Oct 18
0
[LLVMdev] problem with my LLVM pass
...link is still updated? > > http://www.llvm.org/docs/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: > <snip> > CMake Warning at CMakeLists.txt:1 (find_package): > Could not find module FindLLVM.cmake or a configuration file for > 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...
2016 Aug 17
2
RFC: Move cmake shared files
The cmake files generated when building LLVM (including LLVMConfig.cmake) are to support cmake's find_package() [1] function. In the build dir the generated files are placed in <build-dir>/share/llvm/cmake. After install, in <prefix>/lib/llvm/share/llvm/cmake. CMake is not able to find them without a hint. CMake searches these paths on Unix: - <prefix>/lib/llvm/cmake - <prefix>/sh...
2014 Sep 17
2
[LLVMdev] proposal to avoid zlib dependency.
...er 2014 13:27, Mueller-Roemer, Johannes Sebastian <Johannes.Sebastian.Mueller-Roemer at igd.fraunhofer.de> wrote: > Yes, this is incredibly annoying, so please avoid that. However I noticed that the current solution using CMake is broken, as I cannot enter my own ZLIB_ROOT, since no proper find_package is used. I just had a go at hacking this so that we use find_package(ZLIB) if LLVM_ENABLE_ZLIB is used. Does the attached patch work correctly? If so I could send to llvm-commits for review. -------------- next part -------------- A non-text attachment was scrubbed... Name: use_find_package_zlib....
2014 Sep 09
2
[LLVMdev] Can't build against LLVM-3.5 with CMake: CMakeExports.cmake broken?
Hi all, I can't seem to get the simplest CMakeLists.txt file working from http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project. Do any of the LLVM projects use `find_package(LLVM REQUIRED CONFIG)`? Should I just be using `llvm-config` directly? http://llvm.org/bugs/show_bug.cgi?id=20884 David
2014 Sep 09
3
[LLVMdev] Can't build against LLVM-3.5 with CMake: CMakeExports.cmake broken?
...ke Error at /usr/local/Cellar/llvm/HEAD/share/llvm/cmake/LLVMExports.cmake:6 (set_property): set_property could not find TARGET LLVMSupport. Perhaps it has not yet been created. Call Stack (most recent call first): /usr/local/share/llvm/cmake/LLVMConfig.cmake:50 (include) CMakeLists.txt:4 (find_package) ``` /usr/local/share/llvm/cmake/LLVMConfig.cmake seems to calling /usr/local/Cellar/llvm/HEAD/share/llvm/cmake/LLVMExports.cmake which doesn't make sense. I would try cleaning up your install and start again. If you intend to working with different versions of LLVM I don't think it'...
2013 Jan 21
4
[LLVMdev] Embed LLVM/Clang in our project
On 1/21/2013 2:01 AM, Óscar Fuentes wrote: > Ashok Nalkund <ashoknn at qti.qualcomm.com> writes: > >> I was using the find_package(LLVM llvm/share/llvm/cmake) and >> llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native) to get >> the libraries to link against. This works well for the libLLVM* >> libraries, but how do I implement similar find stuff for clang >> libraries? > > AFAIK, there...
2010 Dec 23
1
[LLVMdev] Linking to LLVM with CMake
Hi, I'm having problems linking my project (outside of the llvm source tree) to the LLVM jit. My CMake file contains: ------------ find_package(LLVM REQUIRED) include_directories(${LLVM_INCLUDE_DIR}) link_directories(${LLVM_LINK_DIR}) add_definitions(-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS) add_executable(nvm main.cpp) llvm_config(nvm engine) ------------ cmake succeeds in generating the makefile - so it is correctly finding th...
2013 Jan 21
2
[LLVMdev] Embed LLVM/Clang in our project
...include_directories( ${LLVM_BUILD_DIR}/include ${LLVM_SOURCE_DIR}/include ) > > Replace LLVM_SOURCE_DIR/LLVM_BUILD_DIR with the respective directories. > Same for Clang Thanks for the response, it worked. I can now compile my code by adding the additional include paths. I was using the find_package(LLVM llvm/share/llvm/cmake) and llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native) to get the libraries to link against. This works well for the libLLVM* libraries, but how do I implement similar find stuff for clang libraries? TIA, ashok
2019 Sep 18
2
EngineBuilder(std::move(Owner)).create() return null
I just copy the latest code in HowToUseJIT and run, but the EngineBuilder(std::move(Owner)).create() keeps return null, any idea why? Here's my CMakeList: cmake_minimum_required(VERSION 3.12) project(llvm_test) set(CMAKE_CXX_STANDARD 14) find_package(LLVM REQUIRED CONFIG) llvm_map_components_to_libnames(llvm_libs support core irreader orcjit native) add_executable(llvm_test main.cpp) target_include_directories(llvm_test PUBLIC ${LLVM_INCLUDE_DIRS}) target_compile_definitions(llvm_test PUBLIC ${LLVM_DEFINITIONS}) target_link_libraries(llvm_test...