Re: [CMake] Private dependencies of static libraries exported as targets

2016-08-18 Thread Nicholas Braden
Ah! When I do that, it also solves the include path bloat issue. No longer does `client` know about the include directory of `bar`. Seems it was a difference in minimum CMake version respecting old behavior. In FooTargets.cmake, I see this line: INTERFACE_LINK_LIBRARIES "\$" Awesome. Of course, t

Re: [CMake] howto retrigger check_function_exists

2016-08-18 Thread David Cole via CMake
The code is not meant to be called. The "require += info_size" line is to keep compiler optimizations from stripping out the info_size string variable from the final executable. This code is simply built, and then the resulting binary is scanned for the string "INFO:size[],key[]" and then

Re: [CMake] howto retrigger check_function_exists

2016-08-18 Thread J Decker
I don't understand how this works info_size[1] will return 'N' how will it know it has to pass like 14 arguments to get the right character? And even then the character '4' is not the value 4. - this is the code generated for check_type_size #include #include #include #include "time.h"

[CMake] howto retrigger check_function_exists

2016-08-18 Thread J Decker
I was trying to add some libraries for CMAKE_REQUIRED_LIBRARIES to be able to find more symbols, but changing that didn't cause the check_function-0exists to re-run; is there a shorter way to get it to re-run without deleting CMakeCache.txt? I'm not abject to manually editing files; I had tried to

Re: [CMake] SecTrustEvaluateAsync != NULL

2016-08-18 Thread Laura Fowler
Hi Sean: Many thanks for suggesting to use clang++. I was able to successfully compile cmake. Cheers, Laura On Thu, Aug 18, 2016 at 10:45 AM, Sean McBride wrote: > On Thu, 18 Aug 2016 09:27:43 -0600, Laura Fowler said: > >> >>/Users/LauraLaptop/InstalledSoftwares/sourcecode/cmake-3.6.1/Utilitie

Re: [CMake] CPack: Combine Debug and Release build

2016-08-18 Thread clinton
One thing I've done before is to tell cpack to bundle up 2 projects in one cpack session. One project is a debug build, and the other a release build. if ( CREATE_MULTI_CONFIG_PACKAGE ) set (CPACK_INSTALL_CMAKE_PROJECTS # self project " ${CMAKE_CURRENT_BINARY_DIR} ; ${CMAKE_PROJECT_NAME} ;AL

Re: [CMake] SecTrustEvaluateAsync != NULL

2016-08-18 Thread Sean McBride
On Thu, 18 Aug 2016 09:27:43 -0600, Laura Fowler said: > >/Users/LauraLaptop/InstalledSoftwares/sourcecode/cmake-3.6.1/Utilities/ >cmcurl/lib/vtls/darwinssl.c:1999:6: >error: ‘SecTrustEvaluateAsync’ undeclared (first use in this function) > > if(SecTrustEvaluateAsync != NULL) { > > ^ If yo

Re: [CMake] Installing a list of components

2016-08-18 Thread tom.edwards
That was one of the other problems I encountered during the initial conversion to CMake. I fixed it by wrapping all the ADD_* commands with my own functions which override the target’s output directory. Now we only need to install if a script or static resource changes. From: Klaim - Joël Lamot

Re: [CMake] Installing a list of components

2016-08-18 Thread Klaim - Joël Lamotte
On 18 August 2016 at 17:32, Klaim - Joël Lamotte wrote: > The discussion led to a ticket for a potential feature: https://gitlab. > kitware.com/cmake/cmake/issues/15450 > Discussion ended there: http://public.kitware.com/pipermail/cmake/2015- > March/060120.html > http://cmake.3232098.n2.nabble.

Re: [CMake] Installing a list of components

2016-08-18 Thread Klaim - Joël Lamotte
On 18 August 2016 at 17:26, wrote: > I’m working on an application which consists of many different components > surrounding a common core. We ship multiple products from the same source > tree by adding and/or removing components from the output application > directory. > > > > Using CMake’s ins

[CMake] SecTrustEvaluateAsync != NULL

2016-08-18 Thread Laura Fowler
Hello: This is my first post on the mailing list, so please bare with me. I would like to compile cmake on my machine, but I get the following error during the "make" step. /Users/LauraLaptop/InstalledSoftwares/sourcecode/cmake-3.6.1/Utilities/cmcurl/lib/vtls/darwinssl.c: In function ‘darwinssl_

[CMake] Installing a list of components

2016-08-18 Thread tom.edwards
I’m working on an application which consists of many different components surrounding a common core. We ship multiple products from the same source tree by adding and/or removing components from the output application directory. Using CMake’s install system in this environment is proving difficu

Re: [CMake] Private dependencies of static libraries exported as targets

2016-08-18 Thread Tamás Kenéz
Ivan, > But, if library `foo` is built as static, then its clients suddenly > become required to link to `bar` as well, and this information is not > recorded anywhere! I changed the cmake_minimum_required version in your projects from 2.8 to 3.0 which fixed the issue. (I tried it with cmake 3.6.

[CMake] CPack: Combine Debug and Release build

2016-08-18 Thread tonka tonka
Hey, I want to switch to cpack to build my zip, installer etc.. Everything works fine, but I am not able to get my debug build into my cpack end file. It will always use the release build, which is fine for end-user deployment but not for and sdk installer, because on windows I have to provide bot