Re: [CMake] Time each target

2016-08-25 Thread Michael Ellery
> On Aug 25, 2016, at 9:58 AM, Moreland, Kenneth wrote: > > Does anyone know of a simple way to get CMake to time how long it takes to > compile each target? As it stands now, when compiling a CMake-managed project > a status is printed before each target is built. What I am looking for is a

Re: [CMake] Only install one component in cpack

2016-08-25 Thread tonka tonka
Thx. Works perfectly :-D Am 25.08.2016 13:56 schrieb "Eric Noulard" : > Hi Tonka, > > You should read the doc here: > https://cmake.org/cmake/help/v3.5/module/CPackComponent.html > > for the ZIP generator you should > > set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) > this is necessary because archive g

[CMake] Time each target

2016-08-25 Thread Moreland, Kenneth
Does anyone know of a simple way to get CMake to time how long it takes to compile each target? As it stands now, when compiling a CMake-managed project a status is printed before each target is built. What I am looking for is a way to get CMake to print a second status message after the target

[CMake] Erroneous CMP0022 warning for transitive conditional link dependencies?

2016-08-25 Thread Daniel Lueken
Hi all, As it seems you get an erroneous CMP0022 warning in the following scenario, due to a generator expression not being resolved before string comparison. Confirmed with versions 3.5.1 and rev 00a583ac6833 . (2016-08-24 06:01:04) on Ubuntu Xenial using the Unix Makefile generator. - Create

[CMake] CUDA: COMPILE_DEFINITIONS not picked up

2016-08-25 Thread Karl Ljungkvist
Hi all, if I do something like this, ADD_EXECUTABLE(myprog myprog.cpp) SET_PROPERTY(TARGET myprog APPEND PROPERTY COMPILE_DEFINITIONS "DEF1;DEF2" ) then the two macros DEF1 and DEF2 will be defined at compilation. However, if I switch to the corresponding CUDA setup, CUDA_ADD_EXECUTABLE

Re: [CMake] Only install one component in cpack

2016-08-25 Thread Eric Noulard
Hi Tonka, You should read the doc here: https://cmake.org/cmake/help/v3.5/module/CPackComponent.html for the ZIP generator you should set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) this is necessary because archive generator are "MONOLITHIC" by default. set(CPACK_COMPONENTS_GROUPING IGNORE) with this

[CMake] Only install one component in cpack

2016-08-25 Thread tonka tonka
Hey, I want to create a zip file with only one component in it. Installers like nsis respect the CPACK_COMPONENTS_ALL settings, but the zip generator ignores it. Can I do that? Alternatively I would like to split every component into a single zip file, I know that it is possible but I forgot how

Re: [CMake] Problems running npm-based tests on Windows

2016-08-25 Thread Andrey Fedorov
As demonstrated here https://github.com/QIICR/dcmqi/pull/79, the problem is resolved when .cmd versions of the commands are used. On Wed, Aug 24, 2016 at 1:10 PM, Andrey Fedorov wrote: > Hi, > > we are running ctest's on appveyor using npm-installed packages. > Specifically, we run jsonlint and a