search for: cmake_module_path

Displaying 20 results from an estimated 40 matches for "cmake_module_path".

2016 Oct 10
2
Embedding llvm as a git submodule in Project
..._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}) include_directories(${LLVM_INCLUDE_DIRS}) link_directo...
2012 Jun 29
0
[LLVMdev] [cfe-dev] is configure+make dead yet?
..._CURRENT_LIST_FILE PATH) +set(LLVM_INCLUDE_DIRS ${LLVM_CURRENT_LIST_DIR}/../../../include) +set(LLVM_LIBRARY_DIRS ${LLVM_CURRENT_LIST_DIR}/../../../lib) + set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") # We try to include using the current setting of CMAKE_MODULE_PATH, @@ -47,5 +50,7 @@ ${CMAKE_MODULE_PATH} "@LLVM_SOURCE_DIR@/cmake/modules") include( LLVM-Config ) + + set(LLVM_INCLUDE_DIRS ${LLVM_INCLUDE_DIRS} "@LLVM_SOURCE_DIR@/include") endif() -------------- next part -------------- An HTML attachment was scrubbed... URL: &l...
2012 Jun 29
2
[LLVMdev] [cfe-dev] is configure+make dead yet?
> > *hi,Óscar:* > * * > >Why? Please describe a case. > > >I need to do some futher experiment and to see whether I have been > wrong. > Since I touch this problem several months ago, so I did some test using the 3.2svn, the reason why uninstalled build 'cmake not work lies in set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@) set(LLVM_INCLUDE_DIRS
2012 Jun 28
2
[LLVMdev] [cfe-dev] is configure+make dead yet?
...and assign LLVM_TOOLS_BINARY_DIR accordingly. This can be done, for instance, comparing the values of CMAKE_CURRENT_LIST_FILE and LLVM_INSTALL_PREFIX, with the necessary adjustments. Ditto for LLVM_INCLUDE_DIRS and LLVM_LIB_DIRS. The other two variables your patch touches (LLVM_INSTALL_PREFIX and CMAKE_MODULE_PATH) does not need such corrections, as the former is precisely the *intended* location for an installed build and the later needs modification only for uninstalled builds, as the comment above the IF hints. Apart from that, your patch seems wrong for me because you are using CMAKE_CURRENT_LIST_DIR. S...
2012 Jun 29
0
[LLVMdev] [cfe-dev] is configure+make dead yet?
.../install process, and this is especially convinient on Windows. Use CMAKE_CURRENT_LIST_DIR while not the absolute predefined LLVM_INSTALL_PREFIX is just to give the freedom to this, if just installed and not moved, this will work identical to the value original absolute LLVM_INSTALL_PREFIX points. CMAKE_MODULE_PATH should be corrected for installed version, it's still points to the source tree location while not the install tree location, if you removed/moved the source tree after installation, the installed version will not work properly, surely this is not we wanted? as to uninstalled support, I think...
2012 Jun 29
2
[LLVMdev] [cfe-dev] is configure+make dead yet?
...E_CURRENT_LIST_FILE can be used instead (just take the directory part) but I don't know when it was introduced. In http://www.cmake.org/Wiki/CMake_Useful_Variables CMAKE_CURRENT_LIST_DIR is labeled as 2.8.3 but there is no mention to the version that introduced CMAKE_CURRENT_LIST_FILE. > CMAKE_MODULE_PATH should be corrected for installed version, No, it is the responsability of the user to adjust CMAKE_MODULE_PATH for containing the directory where LLVMConfig.cmake is. See http://llvm.org/docs/CMake.html#embedding For an uninstalled build, the cmake scripts on the source directory are necessary...
2010 Nov 03
2
[LLVMdev] LLVM Cmake module?
...uot;) >> # A bit of a sanity check: >> if( NOT EXISTS ${LLVM_ROOT}/include/llvm ) >> 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(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 com...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...ookup") > 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}) > include_directories(${LL...
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) +end...
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 Aug 03
2
[LLVMdev] Unable to build compiler-rt (Windows)
...CMake Error at lib/asan/lit_tests/CMakeLists.txt:1 (configure_lit_site_cfg): Unknown CMake command "configure_lit_site_cfg". -- Configuring incomplete, errors occurred! I also tried placing it inside the LLVM tree in the "projects" subdir, to no avail (same error). Adding SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../../cmake/Modules) at the top of the file, got rid of the first, not the subsequent errors. The project is disabled in projects/CMakeLists.txt, so that probably doesn't work either. Is there any solution available? Thanks, Ruben PS: please reply to my email address...
2013 Nov 20
2
[LLVMdev] proposed patch to default to isl-only polly
...t; 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) >> + #...
2012 Oct 05
4
[LLVMdev] problem with my LLVM pass
...compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Warning at CMakeLists.txt:1 (find_package): Could not find module FindLLVM.cmake or a configuration file for package LLVM. Adjust CMAKE_MODULE_PATH to find FindLLVM.cmake or set LLVM_DIR to the directory containing a CMake configuration file for LLVM. The file will have one of the following names: LLVMConfig.cmake llvm-config.cmake CMake Error at CMakeLists.txt:4 (include): include could not find load file: AddLLVM CMake...
2010 Nov 03
0
[LLVMdev] LLVM Cmake module?
Eli Gottlieb <eligottlieb at gmail.com> writes: > The two lines >> set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} >> "${LLVM_ROOT}/share/llvm/cmake") >> include(LLVM) > don't seem to work. I'm checking with installing LLVM from source to > see if that makes it work, but the LLVM install from the Ubuntu repos > doesn't seem to have a /usr/share/ll...
2012 Jun 29
2
[LLVMdev] [cfe-dev] is configure+make dead yet?
...DIR}/../../../lib) > + What about LLVM_TOOLS_BINARY_DIR ? Have you checked that CMAKE_CURRENT_LIST_FILE is available for CMake 2.8.0 ? > set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") > > # We try to include using the current setting of CMAKE_MODULE_PATH, > @@ -47,5 +50,7 @@ > ${CMAKE_MODULE_PATH} > "@LLVM_SOURCE_DIR@/cmake/modules") > include( LLVM-Config ) > + > + set(LLVM_INCLUDE_DIRS ${LLVM_INCLUDE_DIRS} "@LLVM_SOURCE_DIR@/include") > endif() Once you address the two questions above, plea...
2013 Nov 20
1
[LLVMdev] proposed patch to default to isl-only polly
...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 supp...
2012 Dec 29
2
[LLVMdev] Building on LLVM on OSX: invalid install?
...CMakeLists.txt, working on linux like a charm: ########### LLVM ########## SET (LLVM_ROOT "" CACHE PATH "Root of LLVM install.") IF (NOT EXISTS ${LLVM_ROOT}/include/llvm) MESSAGE (FATAL_ERROR "LLVM_ROOT (${LLVM_ROOT}) is not a valid LLVM install") ENDIF () SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${LLVM_ROOT}/share/llvm/cmake") INCLUDE (LLVMConfig) LLVM_MAP_COMPONENTS_TO_LIBRARIES (REQ_LLVM_LIBRARIES jit native) ########################### Then, I try to cmake my project: % cmake .. -DLLVM_ROOT=/Applications/Development/llvm/ CMake Error at CMakeLists.txt:...
2013 Nov 20
0
[LLVMdev] proposed patch to default to isl-only polly
...hing 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) >>>...
2013 Nov 19
0
[LLVMdev] proposed patch to default to isl-only polly
...h wrote: > 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 (defau...
2012 Oct 18
0
[LLVMdev] problem with my LLVM pass
...ame 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_package): Could not find module FindLLVM.cmake or a configuration file for package LLVM. Adjust CMAKE_MODULE_PATH to find FindLLVM.cmake or set LLVM_DIR to the directory containing a CMake configuration file for LLVM. The file will have one of the following names: LLVMConfig.cmake llvm-config.cmake So I tried what cmake says: $ cmake -DLLVM_DIR=/usr/share/llvm/cmake . This worked with both 2.8...