[CMake] Passing CMake verbosity down to external project

2015-10-27 Thread Bill Somerville
Hi All, I have an ExternalProject_Add() that uses autotools and I want to tell it to do a verbose make when my CMake parent project has been invoked with VERBOSE=1 or CMAKE_VERBOSE_MAKEFILE=ON. The external project requires V=1 as a make argument to do this. How do I detect the request for v

Re: [CMake] add_test to support generator expressions?

2015-10-27 Thread Stephen Kelly
Nils Gladitz wrote: > On 27.10.2015 19:58, Stephen Kelly wrote: >> Chris Green wrote: >> >>> Ah, I see. It appears I was unclear on the difference between target and >>> test. What I actually want is the *test* property SKIP_RETURN_CODE, >>> which there does not seem to be any way to access via a

Re: [CMake] add_test to support generator expressions?

2015-10-27 Thread Nils Gladitz
On 27.10.2015 19:58, Stephen Kelly wrote: Chris Green wrote: Ah, I see. It appears I was unclear on the difference between target and test. What I actually want is the *test* property SKIP_RETURN_CODE, which there does not seem to be any way to access via a generator expression. Looks like I'm

Re: [CMake] add_test to support generator expressions?

2015-10-27 Thread Stephen Kelly
Chris Green wrote: > Ah, I see. It appears I was unclear on the difference between target and > test. What I actually want is the *test* property SKIP_RETURN_CODE, > which there does not seem to be any way to access via a generator > expression. Looks like I'm out of look, unless this is an upcomi

Re: [CMake] include_external_msproject, add_dependencies and build type (debug/release)

2015-10-27 Thread Holzinger, Axel (ALC NetworX GmbH)
Hi David, thank you. I'll take a look at it. But it's not a problem finding/linking to the external libs. The problem is the dependencies. If I add the dependencies to every linked binary (in contrast to a lib) it works. What doesn't work is having a lib being dependent on an external lib and h

Re: [CMake] include_external_msproject, add_dependencies and build type (debug/release)

2015-10-27 Thread David Cole via CMake
CMAKE_BUILD_TYPE is not typically used/useful with the Visual Studio generators. You may want to look into using the CMAKE_CFG_INTDIR variable instead. https://cmake.org/cmake/help/v3.3/variable/CMAKE_CFG_INTDIR.html On Tue, Oct 27, 2015 at 8:06 AM, Holzinger, Axel (ALC NetworX GmbH) wrote: >

Re: [CMake] add_test to support generator expressions?

2015-10-27 Thread Nils Gladitz
On 10/27/2015 02:33 PM, Chris Green wrote: Ah, I see. It appears I was unclear on the difference between target and test. What I actually want is the *test* property SKIP_RETURN_CODE, which there does not seem to be any way to access via a generator expression. Looks like I'm out of look, unles

Re: [CMake] add_test to support generator expressions?

2015-10-27 Thread Chris Green
Ah, I see. It appears I was unclear on the difference between target and test. What I actually want is the *test* property SKIP_RETURN_CODE, which there does not seem to be any way to access via a generator expression. Looks like I'm out of look, unless this is an upcoming feature? Thanks for

Re: [CMake] CMake hangs on Found Git

2015-10-27 Thread Brad King
On 10/26/2015 02:52 PM, Federico Milano wrote: > but the only way I have made it work is by uninstalling Git. [snip] > Do you know what command is run when it is printing the line "Found Git:..."? By the time that prints then most of the Git operations should be finished. Run "cmake" from the comm

[CMake] include_external_msproject, add_dependencies and build type (debug/release)

2015-10-27 Thread Holzinger, Axel (ALC NetworX GmbH)
Hi list, I'm on my wits end with include_external_msproject, add_dependencies and build type. This is the situation: I have a CMake project with an external static library A which is included in the build via include_external_msproject, a static library B and a binary C. B is depemding on A C