Displaying 20 results from an estimated 20 matches for "llvm_library_dir".
Did you mean:
llvm_library_dirs
2012 Jun 29
2
[LLVMdev] [cfe-dev] is configure+make dead yet?
...o 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 ${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 ht...
2012 Jun 29
0
[LLVMdev] [cfe-dev] is configure+make dead yet?
...======================================================
--- LLVMConfig.cmake.in (revision 159425)
+++ LLVMConfig.cmake.in (working copy)
@@ -32,8 +32,11 @@
set(LLVM_ON_WIN32 @LLVM_ON_WIN32@)
set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@)
-set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
-set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
+
+get_filename_component(LLVM_CURRENT_LIST_DIR CMAKE_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" "...
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
2011 Sep 20
2
[LLVMdev] [PATCH] llvm-config: Add support for LIBDIR_SUFFIX.
...odules/LLVMConfig.cmake.in
index 6b202b2..15ba314 100644
--- a/cmake/modules/LLVMConfig.cmake.in
+++ b/cmake/modules/LLVMConfig.cmake.in
@@ -31,7 +31,8 @@ set(LLVM_ON_WIN32 @LLVM_ON_WIN32@)
set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@)
set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
-set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
+set(LLVM_LIBDIR_SUFFIX "@LLVM_LIBDIR_SUFFIX@")
+set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib${LLVM_LIBDIR_SUFFIX})
set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
# We try to include using the current setti...
2011 Sep 20
0
[LLVMdev] [PATCH] llvm-config: Add support for LIBDIR_SUFFIX.
...6b202b2..15ba314 100644
> --- a/cmake/modules/LLVMConfig.cmake.in
> +++ b/cmake/modules/LLVMConfig.cmake.in
> @@ -31,7 +31,8 @@ set(LLVM_ON_WIN32 @LLVM_ON_WIN32@)
>
> set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@)
> set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
> -set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
> +set(LLVM_LIBDIR_SUFFIX "@LLVM_LIBDIR_SUFFIX@")
> +set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib${LLVM_LIBDIR_SUFFIX})
> set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
>
> # We try to include u...
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 Jul 23
2
[LLVMdev] building a pass with cmake
...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
-- The CXX compiler ide...
2012 Oct 05
4
[LLVMdev] problem with my LLVM pass
...nstruction 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 C compiler: /usr/bin...
2012 Jun 29
2
[LLVMdev] [cfe-dev] is configure+make dead yet?
...===============
> --- LLVMConfig.cmake.in (revision 159425)
> +++ LLVMConfig.cmake.in (working copy)
> @@ -32,8 +32,11 @@
> set(LLVM_ON_WIN32 @LLVM_ON_WIN32@)
>
> set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@)
> -set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
> -set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
> +
> +get_filename_component(LLVM_CURRENT_LIST_DIR CMAKE_CURRENT_LIST_FILE PATH)
> +set(LLVM_INCLUDE_DIRS ${LLVM_CURRENT_LIST_DIR}/../../../include)
> +set(LLVM_LIBRARY_DIRS ${LLVM_CURRENT_LIST_DIR}/../../../lib)
> +
What about LLVM_TOOLS_BINARY_DIR ?...
2012 Jul 23
0
[LLVMdev] building a pass with cmake
...Hello2/Hello.cpp:20:32: error: llvm/ADT/Statistic.h: 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 )
2012 Oct 18
0
[LLVMdev] problem with my LLVM pass
...he 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_package):
Could not fin...
2011 Sep 20
2
[LLVMdev] [PATCH] llvm-config: Add support for LIBDIR_SUFFIX.
...--- a/cmake/modules/LLVMConfig.cmake.in
> > +++ b/cmake/modules/LLVMConfig.cmake.in
> > @@ -31,7 +31,8 @@ set(LLVM_ON_WIN32 @LLVM_ON_WIN32@)
> >
> > set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@)
> > set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
> > -set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
> > +set(LLVM_LIBDIR_SUFFIX "@LLVM_LIBDIR_SUFFIX@")
> > +set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib${LLVM_LIBDIR_SUFFIX})
> > set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
> >
> &...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...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 even with CONFIG I does...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...> # 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 f...
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
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
...g 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:
>
> $ cmake .
&...
2012 Oct 18
2
[LLVMdev] problem with my LLVM pass
...alid 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_link_libraries(myHello ${...
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
...VM_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})