[CMake] [ANNOUNCE] CMake 3.9.2 available for download

2017-09-07 Thread Robert Maynard
We are pleased to announce that CMake 3.9.2 is now available for download. Please use the latest release from our download page: https://cmake.org/download/ Thanks for your support! - Changes in 3.9.2 since 3.9.1: Brad Ki

Re: [CMake] Adding compile and build type tests to CMake/CTest

2017-09-07 Thread Edward Diener
On 9/7/2017 10:34 AM, paul via CMake wrote: On Thu, 2017-09-07 at 02:58 -0400, Edward Diener wrote: On 9/6/2017 11:39 PM, P F via CMake wrote: The `add_test` function can run whatever command you want it to, including compiling a target: add_library(foo_compile_test STATIC EXCLUDE_FROM_ALL fo

Re: [CMake] Adding compile and build type tests to CMake/CTest

2017-09-07 Thread paul via CMake
On Thu, 2017-09-07 at 02:58 -0400, Edward Diener wrote: > On 9/6/2017 11:39 PM, P F via CMake wrote: > > > > The `add_test` function can run whatever command you want it to, including > > compiling a target: > > > > add_library(foo_compile_test STATIC EXCLUDE_FROM_ALL foo_compile_test.cpp) > > ad

Re: [CMake] Adding compile and build type tests to CMake/CTest

2017-09-07 Thread CHEVRIER, Marc
Yes, exactly. I think so… On 07/09/2017, 16:04, "CMake on behalf of Edward Diener" wrote: On 9/7/2017 3:32 AM, CHEVRIER, Marc wrote: > Rather than building a STATIC library, you can build an OBJECT library. In this case only compilation step is done. So your are saying that:

Re: [CMake] Adding compile and build type tests to CMake/CTest

2017-09-07 Thread Edward Diener
On 9/7/2017 3:32 AM, CHEVRIER, Marc wrote: Rather than building a STATIC library, you can build an OBJECT library. In this case only compilation step is done. So your are saying that: add_library(foo_compile_test OBJECT EXCLUDE_FROM_ALL foo_compile_test.cpp) add_test(NAME foo_compile_test

Re: [CMake] CMake 3.9.x Visual Studio CUDA PDB/compiler flags issues

2017-09-07 Thread Robert Maynard
Okay I have opened an issue on CMake for handling multiple gencode with multiple code targets. On Wed, Sep 6, 2017 at 3:19 PM, Mueller-Roemer, Johannes Sebastian < johannes.sebastian.mueller-roe...@igd.fraunhofer.de> wrote: > Yes > > > From: Robert Maynard [robert

Re: [CMake] configuration packages, IMPORTED targets, and global scope

2017-09-07 Thread Robert Dailey
Thanks, I am watching that discussion and will try to contribute where I can. On Thu, Sep 7, 2017 at 4:02 AM, Deniz Bahadir wrote: > Am 06.09.2017 um 20:24 schrieb Robert Dailey: >> >> So it took me a while to figure out why find_package() calls I was >> making (with CONFIG) option were not acces

Re: [CMake] configuration packages, IMPORTED targets, and global scope

2017-09-07 Thread Deniz Bahadir
Am 06.09.2017 um 20:24 schrieb Robert Dailey: So it took me a while to figure out why find_package() calls I was making (with CONFIG) option were not accessible outside of the directory in which it was invoked. I realized that all targets seem to be global by default except IMPORTED targets (acco

Re: [CMake] Adding compile and build type tests to CMake/CTest

2017-09-07 Thread CHEVRIER, Marc
Rather than building a STATIC library, you can build an OBJECT library. In this case only compilation step is done. On 07/09/2017, 08:59, "CMake on behalf of Edward Diener" wrote: On 9/6/2017 11:39 PM, P F via CMake wrote: > The `add_test` function can run whatever command you want it