search for: cmake_prefix_path

Displaying 14 results from an estimated 14 matches for "cmake_prefix_path".

2014 Mar 21
2
[LLVMdev] compiler-rt CMake build
...tance, how about starting by moving the call > 'add_llvm_external_project(compiler-rt)' from > llvm/projects/CMakesLists.txt to clang/runtime? We can tweak this > macro (or a clang variant) to optionally do something like: > > include(AddCompilerRt) > > That way if CMAKE_PREFIX_PATH includes a path to the compiler-rt > install directory, it can import all the same build targets that would > be created by add_subdirectory(compiler-rt). > Probably I don't understand how CMAKE_PREFIX_PATH works. How can top-level targets from one build tree be visible in another bui...
2014 Mar 23
2
[LLVMdev] compiler-rt CMake build
Hi Greg, On Fri, Mar 21, 2014 at 11:18 PM, Greg Fitzgerald <garious at gmail.com> wrote: > Hi Alexey, > > CMAKE_PREFIX_PATH is a convenient mechanism for exposing prebuilt > install directories to a CMake build. It contains a colon-separated > list of paths. Each path points to a directory that contains > directory names that are meaningful to CMake, including 'bin', 'lib' > and 'share&...
2018 Mar 23
0
check_include_file not respecting CMAKE_PREFIX_PATH
$ file /home/andy/misc/bootstrap/out/native/include/zlib.h /home/andy/misc/bootstrap/out/native/include/zlib.h: C source, ASCII text $ cmake /home/andy/misc/bootstrap/llvm-6.0.0.src -DCMAKE_PREFIX_PATH=/home/andy/misc/bootstrap/out/native -DCMAKE_INSTALL_PREFIX=/home/andy/misc/bootstrap/out/native -DCMAKE_BUILD_TYPE=Release -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly; \ -- Looking for zlib.h - not found I propose to use find_path and find_library instead of check_include_file. Shall I s...
2015 Jan 08
7
[LLVMdev] LLD Standalone CMake build
I'm hoping to revive the LLD standalone CMake build. I'm new to this build but it looks like it borrowed code from an old version of compiler-rt, which I did some work on last year. Like compiler-rt, I'd like to get the LLD build up running with only CMAKE_PREFIX_PATH instead of defining custom variables like LLD_PATH_TO_LLVM_BUILD and LLD_PATH_TO_LLVM_SOURCE. Any objection to that? Also, two files ELFLinkingContext.cpp and MachOLinkingContext.cpp include a private header from the LLVM source tree, "llvm/Config/config.h" to get access to HAVE_CXXABI_...
2014 Feb 27
2
[LLVMdev] compiler-rt CMake build
On Wed, Feb 26, 2014 at 9:58 PM, Brad King <brad.king at kitware.com> wrote: > On 02/26/2014 12:43 PM, Alexey Samsonov wrote: > > Do you think it makes sense to land my ExternalProject_Add patch > > so that others can experiment with it? I can add quit with a > > fatal_error/warning if the build tree rules are generated with Ninja. > > Since it is conditional on
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...> CMake Error at CMakeLists.txt:4 (find_package): > Could not find a package configuration file provided by "LLVM" with any > of > the following names: > > LLVMConfig.cmake > llvm-config.cmake > > Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set > "LLVM_DIR" to a directory containing one of the above files. If "LLVM" > provides a separate development package or SDK, be sure it has been > installed. > > > -- Configuring incomplete, errors occurred! > See also "/home/timoo/Schreibti...
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
2012 Jun 29
0
[LLVMdev] [cfe-dev] is configure+make dead yet?
*hi,Óscar:* * * >LLVM_INSTALL_PREFIX is supposed to contain the value of > >CMAKE_INSTALL_PREFIX when you configured LLVM. Using it for setting > >other variables is just a convenience. > > Ok, I understood your point, so I'd like to develop another patch to make > it relocatable and respect the original meanings. > > >CMAKE_CURRENT_LIST_FILE can be
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...txt:4 (find_package): >> Could not find a package configuration file provided by "LLVM" with any >> of >> the following names: >> >> LLVMConfig.cmake >> llvm-config.cmake >> >> Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set >> "LLVM_DIR" to a directory containing one of the above files. If "LLVM" >> provides a separate development package or SDK, be sure it has been >> installed. >> >> >> -- Configuring incomplete, errors occurred! >> See also...
2015 Jan 09
2
[LLVMdev] LLD Standalone CMake build
...gt;> I'm hoping to revive the LLD standalone CMake build. I'm new to this >> build but it looks like it borrowed code from an old version of >> compiler-rt, which I did some work on last year. Like compiler-rt, >> I'd like to get the LLD build up running with only CMAKE_PREFIX_PATH >> instead of defining custom variables like LLD_PATH_TO_LLVM_BUILD and >> LLD_PATH_TO_LLVM_SOURCE. Any objection to that? >> >> Also, two files ELFLinkingContext.cpp and MachOLinkingContext.cpp >> include a private header from the LLVM source tree, >> "llv...
2012 Jun 29
2
[LLVMdev] [cfe-dev] is configure+make dead yet?
..._PREFIX@) set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) LLVM_INCLUDE_DIRS and LLVM_LIBRARY_DIRS points to the user specified or install tree location, but for uninstalled version, they are non-exist yet(because not run make install), so set CMAKE_PREFIX_PATH to builddir\share\llvm\cmake and then do things as described in http://llvm.org/docs/CMake.html using find_package(LLVM) and then include_directories( ${LLVM_INCLUDE_DIRS} ) link_directories( ${LLVM_LIBRARY_DIRS} ) will cause the problem, the directory are not present for the built but uninstalle...
2012 Jun 29
2
[LLVMdev] [cfe-dev] is configure+make dead yet?
hume npx <humeafo at gmail.com> writes: > Hi, Óscar: > nice to hear some voice on this. about LLVM_TOOLS_BINARY_DIR, yes, it > made the installed version work only, if you'd like the uninstalled version > to work, it should be detected as you suggested. > > about LLVM_INSTALL_PREFIX the purpose is to make it really relocatable, > eg, when installed under
2014 Nov 24
1
Contributor Contributions
...Redetect devices unconditionally when handling ConfigureNotify event. This fixes the case where an output was moved but outputChangeNotify is not called. commit 3ea8ae7436af890ee82f1855e1a8ca4c6a76407f Author: Scott Moreau <oreaus at gmail.com> Date: Tue May 17 17:51:02 2011 -0600 Use CMAKE_PREFIX_PATH when searching for libraries. commit 6f5aeaf44b1f1a60e9ddb661955a07b8f5ac56f1 Author: Scott Moreau <oreaus at gmail.com> Date: Fri May 13 03:10:04 2011 -0600 * Bump version to 0.9.5 commit dabbfbdc99c7e0a2da8e448b8feb6e55bec18fa5 Author: Scott Moreau <oreaus at gmail.com> Date:...
2012 Jul 23
2
[LLVMdev] building a pass with cmake
...lid 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) 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...