Re: [CMake] ADD_CUSTOM_TARGET behavior 2.4 vs 2.6?

2008-08-27 Thread Hendrik Sattler
Zitat von Roland Philippsen [EMAIL PROTECTED]: It is quite possible that the following problem arises because I misunderstant custom targets, but it worked under cmake-2.4 (various patch levels, various UNIX-ish operating systems). Attached is a mini-project which triggers an error due to the

Re: [CMake] Building system triplet

2008-08-27 Thread Mathieu Malaterre
http://www.cmake.org/Wiki/CMake_Useful_Variables#System_.26_Compiler_Information I guess those should help: CMAKE_SYSTEM_NAME the short system name, e.g. Linux, FreeBSD or Windows CMAKE_SYSTEM_VERSION only the version part of CMAKE_SYSTEM CMAKE_SYSTEM_PROCESSOR the processor name

[CMake] re-config on make all

2008-08-27 Thread Vandenbroucke Sander
Hi, Sometimes CMake re-configures my build tree when running make. Unfortunately CMake uses wrong options, I normally set those on the command line. This forces me to re-config rebuild my entire source tree. This is a bit annoying since, in most cases, this is not necessary and takes a long

Re: [CMake] re-config on make all

2008-08-27 Thread Eric Noulard
2008/8/27 Vandenbroucke Sander [EMAIL PROTECTED]: Hi, Sometimes CMake re-configures my build tree when running make. Unfortunately CMake uses wrong options, I normally set those on the command line. This forces me to re-config rebuild my entire source tree. This is a bit annoying since, in

Re: [CMake] re-config on make all

2008-08-27 Thread Bill Hoffman
Vandenbroucke Sander wrote: Hi, Sometimes CMake re-configures my build tree when running make. Unfortunately CMake uses wrong options, I normally set those on the command line. This forces me to re-config rebuild my entire source tree. This is a bit annoying since, in most cases, this is not

Re: [CMake] custom configuration types and linking with 3rd-party libs

2008-08-27 Thread cyril_wobow
Yuri V. Timenkov a écrit : On Tuesday 26 August 2008 15:53:31 Philip Lowman wrote: On Mon, Aug 25, 2008 at 9:27 AM, cyril_wobow [EMAIL PROTECTED] wrote: Philip Lowman a écrit : Does LINK_INTERFACE_LIBRARIES_CONFIG do what you want to do? See

[CMake] Latest problem: -D values

2008-08-27 Thread Phil Smith
We're finding that when we get to running make (Cygwin), our compiler is getting called with flags of the format: -Dvariable value instead of: -Dvariable=value I'm *suspecting* that it's dependent on the C compiler, but I've looked at the CMake doc, and don't see an obvious way

[CMake] Bug? Broken header files in Visual C++ 2008 project

2008-08-27 Thread Thomas T.
Hi CMakers! CMake is a great tool for cross-platform development, thanks! There is just one thing that is disturbing my workflow: After searching the forums, and coming up with no working solution, I would like to ask about including headers in a Visual C++ 2008 project with cmake -G Visual

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-08-27 Thread Greg Peele
Thomas, I don't know how helpful saying this will be, but it works for me, at least for CMake 2.6.1 and VS 2008 Express. My same project also builds unchanged for 2005 Professional and 2003 Professional, and the headers even end up in the right project folders by default (I don't use source

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-08-27 Thread John Drescher
I don't know how helpful saying this will be, but it works for me, at least for CMake 2.6.1 and VS 2008 Express. My same project also builds unchanged for 2005 Professional and 2003 Professional, and the headers even end up in the right project folders by default (I don't use source group or

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-08-27 Thread Thomas T.
Hi Greg, Thanks for helping! Could you please send me an example file that is working for you? Below is a short testcase (the original CMakeLists.txt is rather long and spread across several files) with the commands relevant for add_library add_executable. I am using CMake 2.6-patch1 and

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-08-27 Thread Thomas T.
Hi John, Your example hinted me to the problem! Removing source_group did not help, but since your example is quite similar to what I do except that you pass the headers separately, I reasoned the problem was probably the line set_source_file_properties(...) that I applied for all .cpp and

[CMake] cmake vista tutorial?

2008-08-27 Thread Craig Miller
I've read good things about cmake and would like to start using it. I spent the afternoon reading the online tutorials and trying to get a simple hello world c++ project setup and running. I started with the documentation at http://www.cmake.org/HTML/Documentation.html and first followed the