[CMake] How does :: actually works?

2015-06-10 Thread Klaim - Joël Lamotte
Hi, I tried several times now to find documentation about how to define and use target names which seem to have namespaces, like Qt ones. For example: add_executable( MyProject::some_target ... ) I can't find any documentation or even name for this. Is it considered a "namespace"? In any way I f

[CMake] 3.3.0-rc1 feedback - CMP0046 doens't obey policy push

2015-06-10 Thread Miller Henry
I'm trying out my project on 3.3.0-rc1, but currently I'm using 2.8.11 and 2.8.12. I got a couple errors from CMP0046. Most of them are correct: I've fixed a couple places where a non-existent dependency was used, and I want to set this policy to NEW so that more do not sneak in. However the

Re: [CMake] Backup copy on install?

2015-06-10 Thread Bill Hoffman
On 6/10/2015 12:57 PM, Chris Johnson wrote: Hmm. It's a possibility. But those files are generate when I run cmake, aren't they? So re-running that would tend to overwrite any custom modifications I made. And I have about 350 of them. That is what install(CODE ...) will do for you. It will

Re: [CMake] Backup copy on install?

2015-06-10 Thread Chris Johnson
Hmm. It's a possibility. But those files are generate when I run cmake, aren't they? So re-running that would tend to overwrite any custom modifications I made. And I have about 350 of them. I note that cmake_install.cmake simply uses the file(INSTALL ...) command. How could I find the impleme

Re: [CMake] Check_include_file is supposed make a definition?

2015-06-10 Thread Johannes Zarl-Zierl
On Wednesday 10 June 2015 00:48:06 J Decker wrote: > CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H) > > is this supposed to create some sort of ADD_DEFINITION( -DHAVE_STDINT_H) ? No. > if not what else do I have to do to make that work? IF(HAVE_STDINT_H) ADD_DEFINITION(HAVE_STDINT_H) ENDIF() If

[CMake] Check_include_file is supposed make a definition?

2015-06-10 Thread J Decker
CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H) is this supposed to create some sort of ADD_DEFINITION( -DHAVE_STDINT_H) ? if not what else do I have to do to make that work? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ