search for: cmake_current_source_dir

Displaying 20 results from an estimated 23 matches for "cmake_current_source_dir".

2014 May 13
2
[LLVMdev] [PATCH] CMake add_version_info_from_vcs SVN_REPOSITORY
...314d4..4e140e9 100644 --- a/cmake/modules/VersionFromVCS.cmake +++ b/cmake/modules/VersionFromVCS.cmake @@ -1,9 +1,13 @@ # Adds version control information to the variable VERS. For # determining the Version Control System used (if any) it inspects the -# existence of certain subdirectories under CMAKE_CURRENT_SOURCE_DIR. +# existence of certain subdirectories under CMAKE_CURRENT_SOURCE_DIR +# or optional 2nd argument. function(add_version_info_from_vcs VERS) string(REPLACE "svn" "" result "${${VERS}}") + if( ARGV1 ) + set(CMAKE_CURRENT_SOURCE_DIR "${ARGV1}") + end...
2015 May 05
2
[LLVMdev] enabling openmp cmake build in llvm tree
...April/000502.html --- llvm-3.7.0.src/projects/CMakeLists.txt.orig 2015-04-26 19:10:12.000000000 -0400 +++ llvm-3.7.0.src/projects/CMakeLists.txt 2015-04-28 21:14:59.000000000 -0400 @@ -6,6 +6,7 @@ if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt) if((NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt) AND (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/dragonegg) AND + (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/openmp) AND (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxx) AND (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxx...
2009 Aug 06
1
[LLVMdev] MSVC can't Inlcude *.inc files properly
...t; > On Wed, Aug 5, 2009 at 8:04 AM, 罗勇刚(Yonggang Luo)<luoyonggang at gmail.com> > wrote: >> It's because of lib/Target/*/TargetInfo/CMakeLists.txt (* is Alpha, >> ARM and so on); >> the current line is include_directories( >> ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) >> and so msvc can't find out those directory properly. >> but once I changed it to >> include_directories( ${CMAKE_CURRENT_BINARY_DIR}/../ >> ${CMAKE_CURRENT_SOURCE_DIR}/../ ) >> It's working. >> But I am worry about it's can't be working o...
2010 Feb 15
1
[LLVMdev] Broken CMake file?
...d after getting the last svn version, I got this error during cmake: CMake Error: Error in cmake code at <dir>/llvm/projects/CMakeLists.txt:7: Parse error. Function missing ending ")". Instead found left paren with text "(". The line is "if(NOT (${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt))". I really don't know anything about CMake, but when changed the line to "if(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt)", it passed without error. I don't know if this is the right way to do this or maybe it's a problem with my CMake. C...
2017 Nov 25
2
PSA: debuginfo-tests workflow changing slightly
...or llvm/projects. hth... don local:/Users/dhinton/projects/llvm_project/llvm/tools/clang $ git diff master diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c1ac9e4f0f..8c2db7600d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -131,3 +131,7 @@ add_lit_testsuites(CLANG ${CMAKE_CURRENT_SOURCE_DIR} add_custom_target(clang-test) add_dependencies(clang-test check-clang) set_target_properties(clang-test PROPERTIES FOLDER "Clang tests") + +if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/debuginfo-tests/CMakeLists.txt") + add_subdirectory(debuginfo-tests) +endif() diff --git a/tes...
2017 Dec 06
3
PSA: debuginfo-tests workflow changing slightly
...dhinton/projects/llvm_project/llvm/tools/clang $ git diff master >> diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt >> index c1ac9e4f0f..8c2db7600d 100644 >> --- a/test/CMakeLists.txt >> +++ b/test/CMakeLists.txt >> @@ -131,3 +131,7 @@ add_lit_testsuites(CLANG ${CMAKE_CURRENT_SOURCE_DIR} >> add_custom_target(clang-test) >> add_dependencies(clang-test check-clang) >> set_target_properties(clang-test PROPERTIES FOLDER "Clang tests") >> + >> +if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/debuginfo-tests/CMakeLists.txt") >> + add_s...
2017 Dec 06
2
PSA: debuginfo-tests workflow changing slightly
...> local:/Users/dhinton/projects/llvm_project/llvm/tools/clang $ git diff master > diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt > index c1ac9e4f0f..8c2db7600d 100644 > --- a/test/CMakeLists.txt > +++ b/test/CMakeLists.txt > @@ -131,3 +131,7 @@ add_lit_testsuites(CLANG ${CMAKE_CURRENT_SOURCE_DIR} > add_custom_target(clang-test) > add_dependencies(clang-test check-clang) > set_target_properties(clang-test PROPERTIES FOLDER "Clang tests") > + > +if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/debuginfo-tests/CMakeLists.txt") > + add_subdirectory(debuginfo-te...
2018 Jan 25
1
[RFC] Handling cmake policies
...ommand in each of our CMakeLists.txt project files. In order to solve this problem, as well as improve maintainability, I'd like to propose the following: * For all projects except llvm, move `cmake_minimum_required()` inside the standalone build if-branch, i.e., `if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)`, at the top of the CMakeLists.txt project file. This will prevent unnecessary calls `cmake_minimum_required()` for in-tree builds, and allow all sub-projects to use the same policies set by llvm. * Move all `cmake_policy()` commands out of llvm/CMakeLists.txt and into a separate file, e.g., AddL...
2009 Jan 19
0
[LLVMdev] building clang when present
...again how you guys work on the build instead of enhancing/fixing LLVM itself makes me think "what a waste of talent" :-) Adding CMake support for integrating clang into the LLVM build took me about 15 minutes. The only change to the pre-existing LLVM CMake specification was if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt ) add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/clang ) endif() and just this gives a lot of benefit: parallel builds, multiplatform, multicompiler, robustness, etc. With some work it is possible to support building clang on an arbitrary directory, even putting LLVM as a su...
2017 Nov 22
2
PSA: debuginfo-tests workflow changing slightly
I sorta enjoy debugging stuff like this, so if you don't mind, I'll dig into it once I get a chance -- traveling so, my access is a bit sketchy right now. I'll see if I can grab the logs and let you know if I find anything interesting. On Tue, Nov 21, 2017 at 7:04 PM, Zachary Turner <zturner at google.com> wrote: > That change was added specifically to workaround a failure
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...de one mistake I used MODULE instead of CONFIG in find_package. > > But even with CONFIG I doesn't work for me. > > > Here my CMakeLists.txt: > > > cmake_minimum_required(VERSION 3.5.1) > project(SimpleProject) > > find_package(LLVM REQUIRED CONFIG PATHS "${CMAKE_CURRENT_SOURCE_DIR}/l > lvm/cmake$ > > message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") > message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") > > include_directories(${LLVM_INCLUDE_DIRS}) > add_definitions(${LLVM_DEFINITIONS}) > > add_executable(simple-tool main...
2009 Jan 19
3
[LLVMdev] building clang when present
On Jan 19, 2009, at 12:35 PM, Dan Villiom Podlaski Christiansen wrote: > On 19 Jan 2009, at 21:16, Mike Stump wrote: > >> On Jan 19, 2009, at 11:55 AM, Dan Villiom Podlaski Christiansen >> wrote: >>> In my humble opinion, using OPTIONAL_DIRS would be better and >>> cleaner. >>> It may require some changes to ‘Makefile.rules’ to work as >>>
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
...IG in find_package. >> >> But even with CONFIG I doesn't work for me. >> >> >> Here my CMakeLists.txt: >> >> >> cmake_minimum_required(VERSION 3.5.1) >> project(SimpleProject) >> >> find_package(LLVM REQUIRED CONFIG PATHS "${CMAKE_CURRENT_SOURCE_DIR}/l >> lvm/cmake$ >> >> message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") >> message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") >> >> include_directories(${LLVM_INCLUDE_DIRS}) >> add_definitions(${LLVM_DEFINITIONS}) >> >...
2012 Oct 21
0
[LLVMdev] dragonegg polly support broken?
...file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt > index c433ebe..24ccab0 100644 > --- a/test/CMakeLists.txt > +++ b/test/CMakeLists.txt > @@ -11,7 +11,7 @@ set(POLLY_TEST_DIRECTORIES > > set(POLLY_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/..") > set(POLLY_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/..") > -set(LLVM_SHLIBEXT "${CMAKE_SHARED_LIBRARY_SUFFIX}") > +set(LLVM_SHLIBEXT "${CMAKE_SHARED_MODULE_SUFFIX}") > > if (NOT DEFINED LLVM_MAIN_SRC_DIR) > # We are building polly ou...
2017 May 29
0
[PATCH] Add CMake build script
...sh; ./configure $CONFIG; make distcheck; fi diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..06a38a2 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,439 @@ +cmake_minimum_required(VERSION 3.1) + +project(speex VERSION 1.2.0 LANGUAGES C) + +set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/") + +include(CheckIncludeFile) +include(CheckSymbolExists) +include(CheckLibraryExists) +include(CMakeDependentOption) +include(FeatureSummary) +include(TestVarArrays) +include(CheckCCompilerFlag) +include(GNUInstallDirs) +include(TestBigEndian) + +test_big_endian(WORDS_BIGENDIAN) + +c...
2012 Oct 21
2
[LLVMdev] dragonegg polly support broken?
On 10/21/2012 11:46 AM, Jack Howarth wrote: > On Sun, Oct 21, 2012 at 02:35:49PM -0400, Jack Howarth wrote: >> On Sun, Oct 21, 2012 at 11:01:37AM -0700, Tobias Grosser wrote: >>> On 10/21/2012 10:57 AM, Jack Howarth wrote: >>>> On Sun, Oct 21, 2012 at 10:38:48AM -0700, Tobias Grosser wrote: >>>>> On 10/21/2012 09:13 AM, Jack Howarth wrote:
2014 Jul 18
2
[LLVMdev] Fixing LLVM's CMake interface before LLVM3.5 release
...ibrary as a plug-in to the opt tool. With this CMP0026 policy the above produces warnings. After reading ``cmake --help-policy CMP0026`` I tried doing this instead... ``` add_library(ReplaceGetGlobalID MODULE ReplaceGetGlobalID.cpp) file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/run.sh INPUT ${CMAKE_CURRENT_SOURCE_DIR}/run.sh.in) ``` where run.sh.in looks like... ``` #!/bin/bash # THIS IS A HACK - the clang target is missing, just assume its in the same directory as the opt tool $<TARGET_FILE_DIR:opt>/clang -emit-llvm -c simple_prog.c # Load our "Hello pass" as a plug-in to opt and run it on...
2017 Jul 20
2
FYI: Ninja-build user may use CMake-3.9
On Fri, Jul 21, 2017 at 1:16 AM Reid Kleckner <rnk at google.com> wrote: > This is great news! Do we know who contributed the changes to cut the > extra library dependencies? > > Do you think we should remove ENABLE_OBJLIB to simplify our CMake files in > the near future? It seems to me that anyone who cares about highly parallel > build throughput can upgrade CMake to get
2016 Nov 07
2
[llvm] To link or not to link
...e: 5836 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161107/13c46e75/attachment.bin> -------------- next part -------------- project(mex) cmake_minimum_required (VERSION 3.0.2) set(CMAKE_CXX_FLAGS "-std=c++14") set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}") # Done as per http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project (?) find_package(LLVM 3.9 REQUIRED) message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") include_directories(${LLVM_INCLUDE_DIRS}) add_d...