Re: [CMake] custom command comments not showing up

2017-04-07 Thread Hendrik Sattler
However, this messes up parallel make progress output. Am 7. April 2017 22:22:08 MESZ schrieb Craig Scott : >Unfortunately, COMMENT is unreliable. Some generators will honour it, >others won't. A more robust alternative is to use CMake's command mode >to >echo the comment instead. Eg: > >add_custo

Re: [CMake] Cmake for fftw library

2017-04-07 Thread Dan Liew
> Where Am I going wrong ? > Can anyone please help me out ? You don't link against fftw which is why you get linking errors. The `${fftw}` variable is empty. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware of

Re: [CMake] custom command comments not showing up

2017-04-07 Thread Craig Scott
Unfortunately, COMMENT is unreliable. Some generators will honour it, others won't. A more robust alternative is to use CMake's command mode to echo the comment instead. Eg: add_custom_command( TARGET zApp_zip POST_BUILD COMMAND ${CMAKE_COMMAND} -E echo "test2" COMMAND ${CMAKE_COMM

[CMake] CPack not detecting pkgbuild or product build

2017-04-07 Thread Ayla Khan
I’m trying to build a Mac OS X installer package on 10.10.5 using Xcode 7.2 tools with the CPack that ships with CMake 3.7.2. I can generate a package from the CMake build directory if I call cpack directly on the command line with -G productbuild, but not through the CMake build using make pack

Re: [CMake] Transitive include and link libraries on imported targets ?

2017-04-07 Thread David Jobet
INTERFACE_LINK_LIBRARIES won't work since it won't pull out include path for dependants. Using target_link_libraries() on the imported lib does not work because "it is not built". So the question remains open : how to represent include and link dependencies between 2 imported libs ? With rega

[CMake] custom command comments not showing up

2017-04-07 Thread Robert Dailey
So I probably am not understanding how this works. I have a custom target, that I later add multiple custom commands to. Each custom command has a COMMENT set, but the target itself does too: add_custom_target(zApp_zip COMMENT "test1") add_custom_command( TARGET zApp_zip POST_BUILD

Re: [CMake] Transitive include and link libraries on imported targets ?

2017-04-07 Thread David Jobet
Well not quite. I tried that, but my current definition is rather Target_link_libraries(B interface B_imported) I don't remember for which reason I had to do it in 2 stages like that (the A/A_imported and B/B_imported versions) If I add A in the list to read : Target_link_libraries(B interface B

[CMake] Cmake for fftw library

2017-04-07 Thread aishwarya selvaraj
Hi all , I was writing CMakelist.txt to compile my cpp code(prose ) which makes use of two external libraries :libsndfile and fftw . The script I have written is below : CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(PROSE) ##

[CMake] Setting top level source_group with regex

2017-04-07 Thread Glen Knowles
On Windows, cmake version 3.7.2, generating project files for visual studio 2017. I have a file called "configure.bat" that I would like to place at the root of the visual studio project via regex. Here is what I have tried along with where it put configure.bat: 1. no source_group -> "Source File