Re: [CMake] Modern CMake + CUDA + Clang

2018-03-11 Thread Stephen McDowell
I found the GitLab tracker: https://gitlab.kitware.com/cmake/cmake/issues/16586 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services t

[CMake] Swift Makefile/Ninja generator: trying to bring up to date

2018-03-11 Thread Eric Wing
Hi, I know it’s been awhile since I last posted anything about this. Since my last post, I had quietly added to the Ninja backend to bring it to par with the initial work I did on the Makefile generator. This was partly done because I was trying to get compatibility with Android which uses the CMak

[CMake] Modern CMake + CUDA + Clang

2018-03-11 Thread Stephen McDowell
Hello! I stumbled across the new 3.8+ CUDA as a language capabilities, and am very excited about this! 1. Does anybody know when CMAKE_CUDA_COMPILER_ID and CMAKE_CUDA_COMPILER_VERSION were fixed? With cmake 3.9.4 some of the cuda compiler variables were unset: message("CXX compiler stuff:"

Re: [CMake] How to link against projects added through FetchContent

2018-03-11 Thread Saad Khattak
Thank you for the clarifications Craig! The confusion mainly stemmed from ${Catch2_SOURCE_DIR} where 'Catch2' should have been lowercase. I had originally started with the name 'catch' (which would explain why I accidentally left it unchanged in the _GetProperties function) but when that didn't wor

Re: [CMake] How to link against projects added through FetchContent

2018-03-11 Thread Craig Scott
Thanks for trying out the new FetchContent module. Comments on your question interspersed below. On Mon, Mar 12, 2018 at 11:02 AM, Saad Khattak wrote: > Hi, > > I would like to know how to use the FetchContent properly so that I can > link against downloaded (CMake enabled) projects. I have loo

Re: [CMake] How to link against projects added through FetchContent

2018-03-11 Thread Saad Khattak
I managed to find a solution myself: `` cmake_minimum_required(VERSION 3.11) project(testProj) include(FetchContent) FetchContent_Declare( Catch2 GIT_REPOSITORY "https://github.com/catchorg/Catch2"; ) FetchContent_GetProperties(

Re: [CMake] What are the actual benefits of namespaced targets?

2018-03-11 Thread Alan W. Irwin
On 2018-03-11 10:15+0100 Nils Gladitz wrote: On 10.03.2018 23:01, Alan W. Irwin wrote: Anyhow, your thoughts would be appreciated for reasonable best practice limits on how far (if any) beyond the common code case you would go to convert an old project to use ALIAS libraries and modules in the

[CMake] How to link against projects added through FetchContent

2018-03-11 Thread Saad Khattak
Hi, I would like to know how to use the FetchContent properly so that I can link against downloaded (CMake enabled) projects. I have looked at the CMake docs, which although are quite thorough, almost always fail to list a complete example which is incredibly crucial to get up and running quickly.

Re: [CMake] FindMPI & policy CMP0004

2018-03-11 Thread Craig Scott
This could be a case of needing to clear out an old CMake cache. That problem you mentioned was supposed to have been fixed already. You can find the updated discussion of the Mantis issue you linked to in gitlab here where someone else had a si

[CMake] FindMPI & policy CMP0004

2018-03-11 Thread Andreas Naumann
Dear all, recently, I got a problem with FindMPI on our HPC systems. With cmake 3.10.2, I get an error about policy CMP0004. And I cannot set it to OLD anymore. Is this intended? Exactly the same error, together with a patch, is described in the bugtracker https://public.kitware.com/Bug/view

Re: [CMake] Adding a reference to Windows Media Player library using CMake + CSharp support

2018-03-11 Thread Cyril Boucher
Hi all, I figured I would dig up this question as I found a decent solution to this issue. After having a look at how Microsoft Visual Studio is doing to include references to external libraries, I came to realise that it is using a tool called TlbImp, which is short for Type Library Importer. T

Re: [CMake] What are the actual benefits of namespaced targets?

2018-03-11 Thread Nils Gladitz
On 10.03.2018 23:01, Alan W. Irwin wrote: Anyhow, your thoughts would be appreciated for reasonable best practice limits on how far (if any) beyond the common code case you would go to convert an old project to use ALIAS libraries and modules in the build tree that have to be implemented in any c