Re: [CMake] top level make

2012-03-11 Thread Michael Hertling
On 03/11/2012 10:27 PM, Totte Karlsson wrote: Hi, My project depends on several third party libraries, e.g. vtk. I wonder, if it is possible to setup using CMake so that when building my project, necessary third party libs are built as well. Or is it advisable to keep it separate? My

Re: [CMake] Operator Precedence

2012-03-12 Thread Michael Hertling
On 03/12/2012 07:32 PM, Robert Dailey wrote: What is the precedence for logical operators (specifically in IF conditions)? Consider: STREQUAL, AND, OR (plus any others) Documentation of IF(): ...there is a traditional order of precedence. Parenthetical expressions are evaluated first

Re: [CMake] CMake Linking Error

2012-03-12 Thread Michael Hertling
On 03/08/2012 05:40 PM, buzz clay wrote: Hi, I have not been able to find the answer to my current problem so I thought I'd try a new post. Before diving into the details, please be aware that the code I am writing compiles/runs perfectly with a personal Makefile I wrote. My code is

Re: [CMake] Using cmake to build link to autotools based project

2012-03-13 Thread Michael Hertling
On 03/13/2012 10:10 AM, Kurien Mathew wrote: Hello, I have a solution (collection of projects) that is built using cmake. In this solution some projects depend on 3rd party projects that use gnu autotools. I would like to build and link to these autotools based projects from the cmake

Re: [CMake] Code and API review request for Qt5 CMake files

2012-03-13 Thread Michael Hertling
On 03/10/2012 02:25 PM, Alexander Neundorf wrote: On Friday 09 March 2012, Michael Hertling wrote: On 03/05/2012 02:04 AM, Stephen Kelly wrote: ... I don't actually see the problem with checking Qt5_XYZ_FOUND. Unset variables are well defined as false in the if() command. Maybe I

Re: [cmake-developers] How to handle package Config.cmake files with dependencies ?

2012-03-07 Thread Michael Hertling
On 02/27/2012 10:05 PM, Brad King wrote: On 2/27/2012 3:37 PM, Michael Wild wrote: On 02/27/2012 09:15 PM, Alexander Neundorf wrote: When the FooConfig.cmake has been found, Foo_FOUND is set to TRUE: // Set a variable marking whether the package was found. std::string foundVar =

Re: [cmake-developers] How to handle package Config.cmake files with dependencies ?

2012-03-07 Thread Michael Hertling
On 02/27/2012 09:15 PM, Alexander Neundorf wrote: Hi, I think find_package in Config mode might still need some more work. When the FooConfig.cmake has been found, Foo_FOUND is set to TRUE: // Set a variable marking whether the package was found. std::string foundVar = this-Name;

Re: [cmake-developers] Package Config files with COMPONENTS

2012-03-15 Thread Michael Hertling
On 03/13/2012 09:55 PM, Brad King wrote: On Tue, Mar 13, 2012 at 4:43 PM, Alexander Neundorf neund...@kde.org wrote: We could also not set pkg_FIND_REQUIRED_component, or set it to 0 (which would mean it is not required). Even better. One can loop over the_FIND_COMPONENTS list and then

<    3   4   5   6   7   8