Re: [CMake] [cmake-developers] target_include_directories target issue

2014-11-17 Thread Wojciech Mamrak
Thanks Brad, that explains everything. regards 2014-11-17 20:50 GMT+01:00 Brad King : > On 11/17/2014 02:09 PM, Daniel Pfeifer wrote: >> FWD to developers list. I think this is a documentation issue. >> >> Luis Felipe Dominguez Vega schrieb am Mon Nov 17 2014 at 5:42:55 PM: >> >> I can't see

[CMake] CMake 3.x not respecting IMPORTED_LOCATION_ properties

2014-11-17 Thread Parag Chandra
Hello, Until recently, I was making use of the 'debug' and 'optimized' keywords to select the config-specific versions of external dependencies to link in, i.e. if I wanted to link Bar into Foo, I would use: target_link_libraries (Foo DEBUG ${Bar_Debug} OPTIMIZED ${Bar_Release}) Now I have add

Re: [CMake] library dependcies and add_library(OBJECT)

2014-11-17 Thread Stephen Kelly
avo...@mail.ru wrote: > What should I add > to B/CMakeLists.txt to successfully build my executable? You might be able to add an INTERFACE library and populate its INTERFACE_SOURCES using the target_sources command: http://www.cmake.org/cmake/help/v3.1/command/target_sources.html http://ww

Re: [CMake] can I make an AUTOMOC generated file depend on something ?

2014-11-17 Thread Stephen Kelly
Martin Koller wrote: > What rules can I add so that the tar extraction is done BEFORE the moc > generation ? You can add depends in the AUTOGEN_TARGET_DEPENDS target property of particular targets. http://www.cmake.org/cmake/help/v3.0/prop_tgt/AUTOGEN_TARGET_DEPENDS.html Please try that out.

Re: [CMake] ARGV to ARGN translation debugging

2014-11-17 Thread Joe
Hey all, Looks like Bill's got it. Thanks Bill. FYI, this was done as part of doing parameter sweeps (run tests with all combinations of various parameters and settings), when it has been made pretty it may get committed back. Best, David On Mon, Nov 17, 2014 at 11:44 AM, Bill Hoffman wrote:

Re: [CMake] [cmake-developers] target_include_directories target issue

2014-11-17 Thread Brad King
On 11/17/2014 02:09 PM, Daniel Pfeifer wrote: > FWD to developers list. I think this is a documentation issue. > > Luis Felipe Dominguez Vega schrieb am Mon Nov 17 2014 at 5:42:55 PM: > > I can't see into the source code of cmake, into the > cmTargetIncludeDirectoriesComm__and.cxx somethi

Re: [CMake] ARGV to ARGN translation debugging

2014-11-17 Thread Bill Hoffman
On 11/17/2014 1:44 PM, Joe wrote: 1) How can the same ARGV to the same function give different ARGN's? My feeling is that the answer is "never, it's something in how the MESSAGE command displays lists." 2) How can we display lists in a way that allows us to see the differences between them? Tha

[CMake] ARGV to ARGN translation debugging

2014-11-17 Thread Joe
Hey all, I know that ARGV is all arguments, and ARGN is all arguments past the last expected argument. I find myself in a weird situation with these, where identical ARGV's in the same function lead to different ARGN's. The relevant code in the CMake script is below FUNCTION(MY_FUNC_NAME EXE_NAME

[CMake] disable "interactive image" ?

2014-11-17 Thread Burlen Loring
Hi, after upgrading to cdash 2.2.2 I'm having issues re: the "Interactive Image" display for image diffs when there are more than 1 set of images in a test. Here's an example: http://visit.cdash.lbl.gov/testDetails.php?test=1028748&build=3413 It looks like it may be grabbing the wrong valid i

Re: [CMake] target_include_directories target issue

2014-11-17 Thread Luis Felipe Dominguez Vega
I can't see into the source code of cmake, into the cmTargetIncludeDirectoriesCommand.cxx somethink like import the INCLUDE_DIRECTORIES from target passed to target_include_directories, may an error in the documentation? --- On Sunday 16 No

[CMake] Packaging command-line + GUI tools on OS X

2014-11-17 Thread Sjoerd Cranen
Hi all, I am trying to package a set of command line tools and some graphical tools, sharing the same libraries. Given how Apple wants people to use relocatable .app bundles, but advises to put command line tools in their usual *nix paths, I came up with the following intended paths for my file

[CMake] Diagnostics for unclosed generator expressions?

2014-11-17 Thread Johannes Zarl
Hi, Today I learned the hard way that cmake does not provide any diagnostic about unclosed generator expressions. Consider the following: add_test( NAME generator_expression_unclosed COMMAND ${CMAKE_COMMAND} -E echo "$<0:Unclosed expression gives a warning?" ) cmake happily accepts this

Re: [CMake] CTest XML format

2014-11-17 Thread Gerhard Gappmeier
Hi, I was able to figure out my first question. The first two bytes of the binary data was "78 9C". This is the file header of Zlib data with default compression. So by adding the correct gzip header manually you can decompress it. Assume the base64 data from XML is saved in ~/test.base64 you can

Re: [CMake] target_include_directories target issue

2014-11-17 Thread Wojciech Mamrak
Hello, > Just figure it, how cmake can guess that the Bar target depends of Foo > target, you are only telling that add the DIRECTORY Foo to the PRIVATE > INCLUDE_DIRECTORIES of Bar. Because the docs say so: "Specify include directories or targets to use when compiling a given target.". regard

[CMake] library dependcies and add_library(OBJECT)

2014-11-17 Thread avorop
Hello! I'm playing with add_library(OBJECT) operation. Everything works nice but then I have one "library" that uses some external library. An attempt to add target_link_libraries here results in failure, because I don't build and library, only object files. But now comes the problem, how do I not

Re: [CMake] target_include_directories target issue

2014-11-17 Thread Luis Felipe Dominguez Vega
That's because the include directory is obtained in dependends. The documentation say that when the library is imported by dependends of a target, the dependant target obtain all the PUBLIC and INTERFACE include directories, so, with the command target_include_directories(Bar PRIVATE Foo) You

[CMake] can I make an AUTOMOC generated file depend on something ?

2014-11-17 Thread Martin Koller
Hi, I have a project where Qt is used, so I use AUTOMOC. However I have something special: My Qt class implementation needs another (external) Qt implemented source, which I have packed as tar.bz2 file. I have a rule which shall extract the .tar.bz2 file, which works nicely. However, the AUTOMOC

[CMake] CTest XML format

2014-11-17 Thread Gerhard Gappmeier
Hi all, we want to archive our unittest results, code coverage etc. when we release a product. Therefor we want to store the generated XML files in TestLink. However when we need to look at the results again we need to display them somehow. So I have some questions regarding the format: 1.) I f