[CMake] Apologies!

2015-09-25 Thread Craig Scott
Sorry for the rookie mistake not changing the subject on that last post. ;) -- Craig Scott Melbourne, Australia http://crascit.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to su

Re: [CMake] CMake Digest, Vol 137, Issue 50

2015-09-25 Thread Craig Scott
-- Forwarded message -- > From: John Barbero Unenge > To: cmake@cmake.org > Cc: > Date: Fri, 25 Sep 2015 11:58:03 +0200 > Subject: [CMake] find_package for both debug and release with Visual Studio > I'm tearing my hair out about how to include thrid party libraries in my > cmake p

Re: [CMake] Adding files to ARCHIVE packages only in CPack

2015-09-25 Thread Bruno Barberi Gnecco
On 09/25/2015 05:27 AM, Eric Noulard wrote: 2015-09-24 22:42 GMT+02:00 Bruno Barberi Gnecco mailto:brun...@corollarium.com>>: How is it possible to add some files only to the ARCHIVE generators with CMake/CPack? Apparently components do that, but I can't figure how to say "o

Re: [CMake] find_package for both debug and release with Visual Studio

2015-09-25 Thread Tamás Kenéz
1. build your own project, too, in separate build trees for debug and release 2. if all your dependencies' are prepared to provide debug and release libs simultanously (like Poco) you can build them in separate trees (however not neccessary) but set CMAKE_INSTALL_PREFIX and CMAKE_PREFIX_PATH to the

Re: [CMake] find_package for both debug and release with Visual Studio

2015-09-25 Thread Dan Kegel
"John Barbero Unenge" wrote: > > I'm tearing my hair out about how to include thrid party libraries in my cmake project. Currently I build Poco and a bunch of others that all generate their respective Config.cmake which I use with find_package. I have a wrapping build script that builds all of my

[CMake] Testing for existence of a target in a generator expression

2015-09-25 Thread Craig Scott
I can't see anything in the CMake docs which seems to facilitate this, but I was wondering if there's any way to test whether a target is defined inside a generator expression? What I'd like to be able to do is something like this: target_compile_definitions(bar PUBLIC $:HAVE_FOO>) This would ope

Re: [CMake] CMP0054 and CMake Modules

2015-09-25 Thread Nils Gladitz
On 09/25/2015 11:03 AM, thoni56 wrote: Any idea why this only happens on Cygwin? Not on Linux or MacOSX. Is this a clue to something? How can I use this information to debug the issue further? There are platform and compiler specific cmake modules which may only get processed when using cygwin

[CMake] find_package for both debug and release with Visual Studio

2015-09-25 Thread John Barbero Unenge
I'm tearing my hair out about how to include thrid party libraries in my cmake project. Currently I build Poco and a bunch of others that all generate their respective Config.cmake which I use with find_package. I have a wrapping build script that builds all of my dependencies and package them sepa

Re: [CMake] CMP0054 and CMake Modules

2015-09-25 Thread thoni56
Any idea why this only happens on Cygwin? Not on Linux or MacOSX. Is this a clue to something? How can I use this information to debug the issue further? /Thomas -- View this message in context: http://cmake.3232098.n2.nabble.com/CMP0054-and-CMake-Modules-tp7590137p7591629.html Sent from the C

[CMake] Can't build something with MinGW

2015-09-25 Thread Mathieu Bridon
Hi everyone, I've been trying to build something for Windows on Fedora with MinGW and I'm hitting a road block. First, the problem: CMake fails trying to test the C++ compiler with the following error message: Linking CXX executable cmTC_f5bba /usr/bin/cmake -E cmake_link_script CMakeFiles/

Re: [CMake] Adding files to ARCHIVE packages only in CPack

2015-09-25 Thread Eric Noulard
2015-09-24 22:42 GMT+02:00 Bruno Barberi Gnecco : > How is it possible to add some files only to the ARCHIVE > generators with CMake/CPack? Apparently components do that, but I can't > figure how to say "only add component X to generator Y". I did something > like this: > > In CPac