[cmake-developers] [CMake 0015921]: CUDA_nvcuvid_LIBRARY and CUDA_nvcuvenc_LIBRARY is never set to anything in FindCUDA.cmake

2016-01-15 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == https://cmake.org/Bug/view.php?id=15921 == Reported By:Jason Juang Assigned To: ===

Re: [cmake-developers] Adding Swift support to CMake for Linux/Makefiles

2016-01-15 Thread Brad King
On 01/15/2016 09:47 AM, Eric Wing wrote: >> That is the same as for C++. See CMAKE_PARSE_IMPLICIT_LINK_INFO and > > I looked at this file, but I still havne't groked what I need to do > with this yet. Somehow we need to get swift to print verbose output about the command line it uses to invoke t

Re: [cmake-developers] install(EXPORT) with PRIVATE dependency: possible bug

2016-01-15 Thread Tamás Kenéz
Thanks for the quick response! Tamas On Fri, Jan 15, 2016 at 4:26 PM, Brad King wrote: > On 01/14/2016 04:12 PM, Tamás Kenéz wrote: > > Is this really a bug or did I miss something? > > It is a bug. Good catch and thanks for the simple example. > This should fix it: > > Fix export of STATIC li

Re: [cmake-developers] RPATH bug + patch suggestion

2016-01-15 Thread Brad King
On 01/15/2016 09:47 AM, Lior Goldberg wrote: > Specifically, I think that the command "FILE(RPATH_REMOVE ...)" is not subtle > enough, as it removes the compiler's predefined rpath together with the rpath > added by CMake. Good catch, thanks. Patch applied with minor tweaks: install: Do not rem

Re: [cmake-developers] Patch for ExternalProject_Add git clone -o support

2016-01-15 Thread Brad King
On 01/15/2016 12:50 PM, Adam Rankin wrote: > I have attached a patch that provides an implementation of this parameter Thanks! Applied with minor tweaks and a release note: ExternalProject: Add option to set `git clone -o` argument https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=83d63391

Re: [cmake-developers] Git for windows patch

2016-01-15 Thread Brad King
On 01/15/2016 10:25 AM, Brad King wrote: > You'll have to investigate locally to determine why this method is > not working. It looks like a 64-bit CMake binary would not properly include the "Program Files (x86)" directory as a search location due to outdated assumptions. Please try this fix:

[cmake-developers] Patch for ExternalProject_Add git clone -o support

2016-01-15 Thread Adam Rankin
Hello all, As per my inquiry on the users mailing list, I have implemented support for the -origin parameter of git clone. It is backwards compatible as the parameter is optional and defaults to "origin". Example use case: After using ExternalProject_Add to download and built a supporting libra

Re: [cmake-developers] Git for windows patch

2016-01-15 Thread Paul Smith
On Fri, 2016-01-15 at 11:37 -0500, Jean-Christophe Fillion-Robin wrote: > > The existence of \bin is there only for backward > -compatibility > > I guess we could also add "Git/usr/bin" to the suffixes so that it > prefer newer version first ? > > PATH_SUFFIXES Git/usr/bin Git/cmd Git/bin I'm n

Re: [cmake-developers] Git for windows patch

2016-01-15 Thread Jean-Christophe Fillion-Robin
Hi, > The existence of \bin is there only for backward -compatibility I guess we could also add "Git/usr/bin" to the suffixes so that it prefer newer version first ? PATH_SUFFIXES Git/usr/bin Git/cmd Git/bin Hth Jc On Fri, Jan 15, 2016 at 11:24 AM, Paul Smith wrote: > On Fri, 2016-01-15 at 1

Re: [cmake-developers] Git for windows patch

2016-01-15 Thread Paul Smith
On Fri, 2016-01-15 at 10:05 -0500, Shawn Waldon wrote: > Looking at the git installation, there is another executable > "C:\Program Files (x86)\Git\cmd\git.exe", but I have never pointed > CMake at that one. What is the difference between the two? I can > change the patch to use the other one, bu

Re: [cmake-developers] install(EXPORT) with PRIVATE dependency: possible bug

2016-01-15 Thread Brad King
On 01/14/2016 04:12 PM, Tamás Kenéz wrote: > Is this really a bug or did I miss something? It is a bug. Good catch and thanks for the simple example. This should fix it: Fix export of STATIC library PRIVATE dependencies with CMP0022 NEW https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=aea1b

Re: [cmake-developers] Git for windows patch

2016-01-15 Thread Brad King
On 01/14/2016 06:48 PM, Shawn Waldon wrote: > patch that tells CMake to look in the default install location for > Git for Windows [2] when asked for git. This is expected to work already as follows. This code: https://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/Platform/WindowsPaths.cmake;h

Re: [cmake-developers] Git for windows patch

2016-01-15 Thread Shawn Waldon
Hi Kanstantin, Thanks for the feedback. The location of git that I have always used is "C:\Program Files [(x86)]\bin\git.exe". Looking at the git installation, there is another executable "C:\Program Files (x86)\Git\cmd\git.exe", but I have never pointed CMake at that one. What is the differenc

[cmake-developers] RPATH bug + patch suggestion

2016-01-15 Thread Lior Goldberg
Hi, I think there is a bug in the way CMake handles rpath for installed targets. My GCC installation contains the following definition in the specs file: *link_libgcc: %D -rpath <> This configuration leads to the following bug in CMake: Whenever a target (which depends on a library in the

Re: [cmake-developers] Adding Swift support to CMake for Linux/Makefiles

2016-01-15 Thread Eric Wing
(Ignore the last post. The last message sent accidentally before I was even close to done. Not sure why it sent. I must have accidentally discovered a hot key in Gmail. Everything is rewritten here.) Okay, I think I'm making some good progress. I got a trivial program built on Mac. I've now switc

Re: [cmake-developers] Adding Swift support to CMake for Linux/Makefiles

2016-01-15 Thread Eric Wing
Okay, I think I'm making some good progress. I got a trivial program built on Mac. I've now switched to Linux. I'm mostly there, but there are still some things that need to be done. More inline... https://github.com/ewmailing/CMake/tree/SwiftMakefile >> Anyway, I tried bumping up CMAKE_Swift_L

Re: [cmake-developers] CMake alternative language

2016-01-15 Thread Jean-Michaël Celerier
Throw in a > list(GET MyList ${i} ElementA) > list(GET MyOtherListOfSameSizeThanMyList ${i} ElementB) > foobazify(${ElementA} ${ElementB}) (I did not want to put a ginormous code snippet, just to outline the amount of code necessary to do simple things) On Fri, Jan 15, 2