Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-16 Thread Cedric Doucet
Hello David, thank you very much for your help. Unfortunately I may do something wrong because it does not work. After cleaning, the library is downloaded again. I guess my mistake comes from the fact I do not understand the role of URL_MD5. Below is a simple example where downloading and insta

[CMake] ExternalProject can't have interface library as a dependency

2015-04-16 Thread Andrey Pokrovskiy
/* I'm using cmake-3.2.20150331-gb190c. */ I have a following construction: ExternalProject_Add( websockets_ep DEPENDS ev openssl ...) But it so happened, that "openssl" is a INTERFACE library. Because of that I get an obscure error: CMake Error at /usr/share/cmake/shar

[CMake] JOIN generator expression not working

2015-04-16 Thread Daniel Dilts
I have this generator expression: -I$, -I> I get this output in my custom command: -I$ This is almost exactly the same as the example in the documentation (other than adding ${LibraryName}). Why doesn't this work? -- Powered by www.kitware.com Please keep messages on-topic and check the CMa

Re: [CMake] linking question

2015-04-16 Thread Bill Newcomb
This solved the cmake end of this. Thanks! B. On 04/15/2015 11:53 PM, Petr Kmoch wrote: Hi Bill. Probably the easiest way to set the interface properties to just what you need is to use the PUBLIC (which is the default), PRIVATE and INTERFACE keywords when specifying dependencies. In your cas

[CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-16 Thread Alan W. Irwin
I am trying to change the existing PLplot build system to set CMP0026 to new following the existing advice that file(GENERATE...) should be used to configure target locations in a file using generator expressions. But the issue is configure_file currently (see end question below) does not appear

Re: [CMake] add_custom_commmand TARGET is unknown

2015-04-16 Thread Nils Gladitz
On 16.04.2015 22:25, Daniel Dilts wrote: You can only add commands to a target that was defined in the current directory? So, I would have to have a new target for each directory and then have a target that depends on all of those targets? I don't know your use case so I can not comment on wh

Re: [CMake] add_custom_commmand TARGET is unknown

2015-04-16 Thread Daniel Dilts
You can only add commands to a target that was defined in the current directory? So, I would have to have a new target for each directory and then have a target that depends on all of those targets? On Thu, Apr 16, 2015 at 1:08 PM, Nils Gladitz wrote: > On 16.04.2015 22:01, Daniel Dilts wrote:

Re: [CMake] add_custom_commmand TARGET is unknown

2015-04-16 Thread Nils Gladitz
On 16.04.2015 22:01, Daniel Dilts wrote: I have the following in my lists: if(TARGET CustomTarget) message("TARGET CustomTarget") else() message("NOT TARGET CustomTarget") endif() add_custom_command(TARGET CustomTarget PRE_BUILD COMMAND CustomCommand.exe USES_TERMINAL ) In my output I

Re: [CMake] add_custom_commmand TARGET is unknown

2015-04-16 Thread Daniel Dilts
I have the following in my lists: if(TARGET CustomTarget) message("TARGET CustomTarget") else() message("NOT TARGET CustomTarget") endif() add_custom_command(TARGET CustomTarget PRE_BUILD COMMAND CustomCommand.exe USES_TERMINAL ) In my output I get: TARGET CustomTarget CMake Error at Som

Re: [CMake] add_custom_commmand TARGET is unknown

2015-04-16 Thread Daniel Dilts
I moved the add_custom_target to the 4th line of my top-level CMakeLists.txt. The only lines before it are cmake_minimum_required, project, and a single set. I also made sure that the name of the target matches the target name in add_custom_command and add_dependencies. I am still getting the sa