Re: [CMake] Better handling of library dependencies for CPack

2011-05-02 Thread Rosen Diankov
Basically, the decision to use codenames is because the changelog files use codenames. If OpenSuse control logs use versions, then using X_DEPENDS_OPENSUSE_11_4 is perfectly natural. However i doubt this is the case. ..and we can always support both ways of writing... rosen, 2011/5/3 Rosen Diank

Re: [CMake] Better handling of library dependencies for CPack

2011-05-02 Thread Rosen Diankov
As far as i know, the debian changelog file takes in a codename, not a version number... It can also take 'unstable' as the distro name, but for some reason launchpad will reject those. if you want to specify distros by versions numbers, then we would need to store a mapping of all versions to co

Re: [CMake] [CMake General][FindBoost] CMake and Boost 1.46.1

2011-05-02 Thread Philip Lowman
On Mon, May 2, 2011 at 1:53 AM, Robert Nelson wrote: > > try ... setting Boost_DEBUG On > Great suggestion! > > I looked at the debug output as you recommended and discovered that > findboost only searches for filenames that start with "boost" while > all the files in the lib directory start with

Re: [CMake] Triggering individual steps of externalproject_add add cmake time

2011-05-02 Thread Michael Hertling
On 04/29/2011 11:52 AM, Jan Wurster wrote: > Hi David, > > thanks for your help and suggestions! > >> From: David Cole [mailto:david.c...@kitware.com] >> Sent: Donnerstag, 28. April 2011 19:57 >> Subject: Re: [CMake] Triggering individual steps of > externalproject_add add cmake time >> >> I

Re: [CMake] how to build a target after installing dependencies?

2011-05-02 Thread Michael Hertling
On 05/02/2011 07:05 PM, hurcan solter wrote: > Hi all > > I have a project that depends on some contrib libraries (SDL png etc..). > If I can't find the dependencies through FindXXX macros > I build them myself (wrote CMakeLists for dependencies) and link to the > project, also setting the inclu

Re: [CMake] Changing installation prefix triggers re-linking of all libraries

2011-05-02 Thread Michael Hertling
On 04/29/2011 03:39 PM, Pere Mato Vila wrote: > Perhaps somebody can give me some hints on this problem I have. I build a > project and install it in /install with "make install". Then I do > change the installation prefix with > cmake -DCMAKE_INSTALL_PREFIX=/install2 ../root_cmake/ > and if I

Re: [CMake] cmake not found

2011-05-02 Thread David Henderson
Hello David: I do not have cygwin installed. Anywhere. I also did a search for cmake.exe and the only one available is the one in the cmake installation. I have version 2.8.4 installed. Thanks!! Dave H From: David Cole To: David Henderson Cc: cmake@cma

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread David Cole
execute_process requires the COMMAND keyword. http://cmake.org/cmake/help/cmake-2-8-docs.html#command:execute_process I think you should start looking around a little harder for some examples and documentation before asking more about "how do I run a cmake script" on this list. Thanks, David

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread Tyler
Your syntax is wrong: http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:execute_process execute_process (COMMAND ${command1} ...) tyler On Mon, May 2, 2011 at 11:50 AM, David Doria wrote: > On Mon, May 2, 2011 at 2:27 PM, Tyler wrote: >> You could use -D flags (cmake -Dvar=value -P

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread David Doria
On Mon, May 2, 2011 at 2:27 PM, Tyler wrote: > You could use -D flags (cmake -Dvar=value -P script.cmake). That seems reasonable. I tried it: CMakeLists.txt - cmake_minimum_required(VERSION 2.6) PROJECT(Test) ENABLE_TESTING() ADD_EXECUTABLE(Test1 Test1.cxx) ADD_EXECUTABLE(Test2 Tes

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread Tyler
You could use -D flags (cmake -Dvar=value -P script.cmake). On Mon, May 2, 2011 at 11:07 AM, David Doria wrote: > On Mon, May 2, 2011 at 1:57 PM, David Cole wrote: >> script.cmake: >> execute_process(x) >> execute_process(y) >> >> CMakeLists.txt: >> add_test(NAME MyTest COMMAND ${CMAKE_COMMAND}

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread David Doria
On Mon, May 2, 2011 at 1:57 PM, David Cole wrote: > script.cmake: > execute_process(x) > execute_process(y) > > CMakeLists.txt: > add_test(NAME MyTest COMMAND ${CMAKE_COMMAND} -P > ${CMAKE_CURRENT_SOURCE_DIR}/script.cmake) > > Or, configure the script into the build tree if you need variable value

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread David Cole
script.cmake: execute_process(x) execute_process(y) CMakeLists.txt: add_test(NAME MyTest COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/script.cmake) Or, configure the script into the build tree if you need variable values from the CMakeLists.txt file and then reference the configured co

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread David Doria
On Mon, May 2, 2011 at 1:31 PM, David Cole wrote: > If it's supposed to be "one test" from ctest's point of view, you should > write a script that makes 2 execute_process calls, and run the script as the > add_test command. I tried to write a function that runs to executables, and add that functi

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread David Cole
If it's supposed to be "one test" from ctest's point of view, you should write a script that makes 2 execute_process calls, and run the script as the add_test command. On Mon, May 2, 2011 at 1:25 PM, Tyler wrote: > I believe tests can have dependencies. Failing that, you can use the > COST prop

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread Tyler
I believe tests can have dependencies. Failing that, you can use the COST property to control test execution order. hth, tyler On Mon, May 2, 2011 at 10:18 AM, David Doria wrote: > I am trying to run an executable that produces an output image, then > compare this image to a baseline using a sep

[CMake] Running two executables sequentially in a test

2011-05-02 Thread David Doria
I am trying to run an executable that produces an output image, then compare this image to a baseline using a separate Compare executable. Is it possible to do this in a single add_test command? I tried separating the two executables with a semicolon, but that doesn't seem to work. add_executable

[CMake] how to build a target after installing dependencies?

2011-05-02 Thread hurcan solter
Hi all I have a project that depends on some contrib libraries (SDL png etc..). If I can't find the dependencies through FindXXX macros I build them myself (wrote CMakeLists for dependencies) and link to the project, also setting the include directories(SDL_INCLUDE_DIR in spirit of FindXXX macro

Re: [CMake] MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll

2011-05-02 Thread Michael Jackson
Just saw this posting on the Qt-interest mailing list which might be helpful here. > > If you are using Visual C++ Express, the 2010 edition does not appear to > > include *.msm merge modules for C++ runtime redistributable. That makes it > > impossible to build a .msi installer incorporating au

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-05-02 Thread Michael Jackson
You have a couple of options but basically if you build your executable as a command line application (your first try) and the plugin is located in the same directory as your executable then the loading generally isn't a problem (Barring changes in working directory). But when you create a true

Re: [CMake] MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll

2011-05-02 Thread Michael Wild
Are they contained in the "Windows SDK"? Michael On 05/02/2011 04:51 PM, David Cole wrote: > Ah, well. Why didn't you say you were using the Express edition of MSVC 10? > > There are no redistributable installation files included in the Express > editions anymore, if I understand correctly. > >

Re: [CMake] Documentation suggestion

2011-05-02 Thread Michael Wild
How about extending the markup language with anchors and references, e.g. like in AsciiDoc, restructuredText or MarkDown? E.g. using AsciiDoc syntax: [[if_cmd]] Here goes the documentation for the IF() command. [[else_cmd]] See documentation of the <>. When producing HTML, you simply transform t

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-05-02 Thread tog
Hi, I am back on this topic. I have rewritten my example to load the library with a path relative to the location of my executable. Everything is working fine in my build directory specifying: ADD_EXECUTABLE(main main.cpp sub.cpp) <- executable is created as example/main but is not working

Re: [CMake] MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll

2011-05-02 Thread Mathieu Malaterre
Thanks for the info. I never saw this warning when using 2005/2008 express edition... so I simply assumed something was wrong. -M On Mon, May 2, 2011 at 4:51 PM, David Cole wrote: > Ah, well. Why didn't you say you were using the Express edition of MSVC 10? > > There are no redistributable insta

Re: [CMake] Documentation suggestion

2011-05-02 Thread David Cole
On Mon, May 2, 2011 at 10:51 AM, David Doria wrote: > > what about Doxyen[1]? > > > > Kind regards, > > Benjamin > > What do you think Dave C? As a side-effect it would then "look like" > other Kitware based projects (ITK, VTK etc) which all use Doxygen. > > David > I think that would be a lovel

Re: [CMake] Documentation suggestion

2011-05-02 Thread Benjamin Eikel
To answer myself: The problem could be that one has to write a parser. From [1]: 12. My favorite programming language is X. Can I still use doxygen? No, not as such; doxygen needs to understand the structure of what it reads. If you don't mind spending some time on it, there are several options:

Re: [CMake] MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll

2011-05-02 Thread David Cole
Ah, well. Why didn't you say you were using the Express edition of MSVC 10? There are no redistributable installation files included in the Express editions anymore, if I understand correctly. In CMake, we do this, to avoid this warning (put code like this before including InstallRequiredSystemLi

Re: [CMake] Documentation suggestion

2011-05-02 Thread David Doria
> what about Doxyen[1]? > > Kind regards, > Benjamin What do you think Dave C? As a side-effect it would then "look like" other Kitware based projects (ITK, VTK etc) which all use Doxygen. David ___ Powered by www.kitware.com Visit other Kitware open-s

Re: [CMake] Documentation suggestion

2011-05-02 Thread Benjamin Eikel
Hello, Am Montag, 2. Mai 2011, 16:37:45 schrieb David Cole: > Good suggestion. > > We've also thought of that idea... > > Here's what we need to implement it: > > Do you have a good suggestion for how to represent links in the source code > such that we can generated such linked documentation?

Re: [CMake] MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll

2011-05-02 Thread Mathieu Malaterre
Hi Dave, Thanks for your input. Using: cmake-2.8.4.20110426-g6bb0a-win32-x86.exe Here is what I get: ... CMake Warning at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/InstallRequiredSystemLibraries.cmake:322 (MESSAGE): system runtime library file does not exist: 'MSVC10_REDIST_DIR-N

Re: [CMake] Documentation suggestion

2011-05-02 Thread David Cole
Good suggestion. We've also thought of that idea... Here's what we need to implement it: Do you have a good suggestion for how to represent links in the source code such that we can generated such linked documentation? If it was easy, we would have done it already... If you do have a suggested

Re: [CMake] MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll

2011-05-02 Thread David Cole
Does the same thing happen with a nightly build of CMake? (downloaded from Kitware, or based on 'master' or 'next'...?) Try with a recent nightly build and see if you get the same thing, please. http://cmake.org/files/dev/?C=M;O=D Thanks, David On Mon, May 2, 2011 at 10:21 AM, Mathieu Malaterr

Re: [CMake] cmake not found

2011-05-02 Thread David Cole
Looks to me like you're using the cygwin cmake. Use the native Windows cmake instead for generating with the "MSYS Makefiles" generator. They differ in how they treat paths to file names. On Fri, Apr 29, 2011 at 9:01 PM, David Henderson wrote: > I'm having trouble compiling a project using cma

Re: [CMake] CDash Dynamic Analysis

2011-05-02 Thread David Cole
You are asking in the right place. Unfortunately, you appear to be a member of a very elite (i.e., small) group of people. The group building custom tools. Most people just want to know how to *use* valgrind on their project, not how to write their own analysis tools and integrate them. Usually,

Re: [CMake] CDash Dynamic Analysis

2011-05-02 Thread David Cole
On Thu, Apr 28, 2011 at 12:49 AM, wrote: > Hi > > Another update and a question > > I'v reverse engineered and hacked the CDash/CMake/CTest code a bit to see > how it works. > > I'v now come to the conclusion that the best way to handle custom tools > (style checks, static code analysis) is to us

Re: [CMake] CDash Dynamic Analysis

2011-05-02 Thread David Cole
On Thu, Apr 21, 2011 at 2:54 AM, wrote: > Hi > > I went for the custom DynamicAnalysis.xml thing > > I think I figured out what the file should contain. > > There is a slight problem however. > > The Labels in the defect list of CDash are that of some other tool > > How do I change them? > > I'm

[CMake] MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll

2011-05-02 Thread Mathieu Malaterre
Dear all, I keep getting this error during cmake configuration time: ... CMake Warning at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/InstallRequiredSystemLibraries.cmake:314 (MESSAGE): system runtime library file does not exist: 'MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/ms

Re: [CMake] If syntax

2011-05-02 Thread Michael Wild
[fixed top-posting and missing quotation characters] On 05/02/2011 12:20 PM, mika.raj...@patria.fi wrote: >> On 05/01/2011 10:30 PM, David Doria wrote: >>> According to this: >>> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:if >

Re: [CMake] [CMake General][FindBoost] CMake and Boost 1.46.1

2011-05-02 Thread Andrew Maclean
Hi Robert, I build boost for windows using bjam and I have no problems with CMake finding boost. In my CMake files I do this: #-- --- # Boost # For automatic linking, uses the static version of the libraries. if(WIN32) set

Re: [CMake] If syntax

2011-05-02 Thread Mika . Rajala
Hi if(expression) ... endif(expression2) Makes an error since the expressions didn't match I think this is the case with "else" as well. However, i'm uncertain how to write it when you use elseif, maybe it still needs to match with the expression in the IF thing The reasoning behind this, A