search for: link_directori

Displaying 20 results from an estimated 21 matches for "link_directori".

Did you mean: link_directories
2012 Jul 23
2
[LLVMdev] building a pass with cmake
...LVM) 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/ -- The C compiler identification is GNU --...
2012 Oct 05
4
[LLVMdev] problem with my LLVM pass
...rce 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 identification is GNU -- Check for working...
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
2012 Jul 23
0
[LLVMdev] building a pass with cmake
...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 )
2012 Oct 18
0
[LLVMdev] problem with my LLVM pass
...-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 Warning at CMakeLists.txt:1 (find_pack...
2010 Nov 03
2
[LLVMdev] LLVM Cmake module?
...gt;> # 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 the LLVM libraries to our executable: >> targe...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
..._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 CONFIG in find_package. > > But ev...
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 the installed LLVM (2.8, r122491), which compiled fine. The build fails, c...
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
...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 i...
2012 Jun 29
2
[LLVMdev] [cfe-dev] is configure+make dead yet?
...l 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 uninstalled source tree. > >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.ed...
2012 Oct 09
0
[LLVMdev] problem with my LLVM pass
On Fri, Oct 5, 2012 at 3:45 PM, Jun Koi <junkoi2004 at gmail.com> wrote: > On Fri, Oct 5, 2012 at 3:39 PM, David Chisnall > <David.Chisnall at cl.cam.ac.uk> wrote: >> On 5 Oct 2012, at 08:34, Jun Koi wrote: >> >>> any idea on how to fix the problem? >> >> The correct solution is to fix the LLVM build to install the .cmake files in a location that
2010 Nov 03
0
[LLVMdev] LLVM Cmake module?
...stall") > 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}) > # Let's suppose we want to build a JIT co...
2012 Oct 05
2
[LLVMdev] problem with my LLVM pass
On Fri, Oct 5, 2012 at 3:39 PM, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote: > On 5 Oct 2012, at 08:34, Jun Koi wrote: > >> any idea on how to fix the problem? > > The correct solution is to fix the LLVM build to install the .cmake files in a location that CMake knows about. could you please elaborate? > The hacky solution that I've used is just to copy
2012 Oct 18
2
[LLVMdev] problem with my LLVM pass
...machine, llvm-config is in the path, and can be called from anywhere. > $ 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:...
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
2012 Oct 18
2
[LLVMdev] problem with my LLVM pass
...VM_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_INCLUDE_DIRS} ) link_directories( ${LLVM_LIBRARY_DIRS} ) add_definitions( ${LLVM_DEFINITIONS} ) # 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) # Finally, we link the LLVM libraries to our executable: target_lin...
2012 Jul 07
2
[LLVMdev] Problem in LLVM CMake modules
...{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_PATH2}) # Let's suppose we want to build...
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 Nov 07
2
[llvm] To link or not to link
...nfig.cmake in: ${LLVM_DIR}") include_directories(${LLVM_INCLUDE_DIRS}) add_definitions(${LLVM_DEFINITIONS}) llvm_map_components_to_libnames(LLVM_LIBRARIES_OC Analysis Core ExecutionEngine InstCombine Object RuntimeDyld ScalarOpts Support native) include_directories(SYSTEM ${LLVM_INCLUDE_DIRS}) link_directories(${LLVM_LIBRARY_DIRS}) add_executable(mex mex.cpp) target_link_libraries(mex ${LLVM_LIBRARIES_OC} ${LLVM_LDFLAGS})