Re: [CMake] CPack - Mac OS X Universal dmg

2010-06-21 Thread Nick Bolton
Dave, On 20 June 2010 18:02, Dave Partyka dave.part...@kitware.com wrote: When configuring your build set CMAKE_OSX_ARCHITECTURES  to both the architectures you wish to build. For example 'i386;ppc'. This will produce libraries/executables with both architectures embedded in them. You can

Re: [CMake] Unknown CMake command CHECK_STRUCT_HAS_MEMBER

2010-06-21 Thread Marcus Liebhardt
I got the source code via SVN from: https://playerstage.svn.sourceforge.net/svnroot/playerstage/code/player/trunk For an 'How-To' check: http://playerstage.sourceforge.net/wiki/Basic_FAQ#How_do_I_get_the_latest_code.3F :-) Marcus 2010/6/18 David Cole david.c...@kitware.com On Fri, Jun 18,

Re: [CMake] Cmake and Libltdl

2010-06-21 Thread Michael Hertling
On 06/19/2010 09:41 AM, Carlos Lopez Gonzalez wrote: On Fri, 18 Jun 2010 10:40:46 +0200 Michael Hertling wrote: On 06/17/2010 11:29 AM, Carlos Lopez Gonzalez wrote: Hi, I'm new to cmake and want to port a C++ project which is now built using autotools to cmake build system. The project

[CMake] One last try

2010-06-21 Thread Gerry Weaver
Hello All, I've been using cmake for many years. I must admit that I have always been somewhat bothered by the complexity of it, but it hasn't really become an issue until now. When Microsoft Visual Studio 2008 came out, I upgraded in order to get some new apis I needed. When I tried a cmake

[CMake] install() command - order of evaluation

2010-06-21 Thread Sukender
Hi all, It seems install(SCRIPT) is called before install(TARGETS) ; is there a way to change this? Actually I try to insert a script just before packaging (ie. at the end of INSTALL target). I'd like to have: - Prepare all files (install(FILES), and install(TARGETS)) - Run my script

Re: [CMake] One last try

2010-06-21 Thread Bo Thorsen
Den 21-06-2010 09:02, Gerry Weaver skrev: [...] 1. Is cmake supposed to support Visual Studio 2008 out of the box? I have been using cmake and VS2008 for a while without any problems on XP, Vista and Windows 7. There must be something really odd in your setup. When upgrading to 2008, did

[CMake] Link order of object files

2010-06-21 Thread Mathias Lafeldt
Hi, is there a way to tell CMake in which order to link in object files? For example, I got the following executable: ADD_EXECUTABLE(hello crt0.o hello.c) Using a disassembler, I can see that hello.c is compiled in before crt0.o, but I want crt0.o to always be the first. Also, this

Re: [CMake] One last try

2010-06-21 Thread Michael Jackson
What are the problems that you are are having? What errors does cmake produce? I use cmake with vs2008 every day on win 7 and win xp sp3 without any problems. - Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz

[CMake] How set Build Name in CTest/CDash?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
I'm using CTest to submit results to CDash. Can anyone tell me how to specify the text that shows up in CDash's Build Name column? The manpage for ctest says that I can set the CMAKS_SYSTEM and CMAKE_CXX_COMPILER variables, but I'm concerned that doing so may mess up my build. I have a Linux

Re: [CMake] One last try

2010-06-21 Thread Bill Hoffman
On 6/21/2010 3:02 AM, Gerry Weaver wrote: Hello All, ... 1. Is cmake supposed to support Visual Studio 2008 out of the box? 2. If not, is there support for Visual Studio 2010? 3. If not, is there a patch or fix for either of the above? cmake 2.8.1 msvc 2008 winxp sp4 Nmake Makefiles 1.

Re: [CMake] One last try

2010-06-21 Thread John Drescher
1. Is cmake supposed to support Visual Studio 2008 out of the box? Yes and it works well. I use this combination every day for the last 2 years. John ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] How set Build Name in CTest/CDash?

2010-06-21 Thread David Cole
The old-fashioned way of doing this is to set a BUILDNAME variable in the cmake cache... In your CMakeLists.txt: set(BUILDNAME myBuildName CACHE STRING build name variable for CDash) The new-fashioned way is to set CTEST_BUILD_NAME in your ctest -S script prior to ctest_configure, ctest_build

Re: [CMake] One last try

2010-06-21 Thread Gerry Weaver
Hello All, Thank you for your replies.  The cmake command fails when trying to compile the test file. It says it cannot find kernel32.lib. I can compile and link without cmake just fine. Any ideas? Thanks, -G  _ From: Bill Hoffman [mailto:bill.hoff...@kitware.com] To:

Re: [CMake] How set Build Name in CTest/CDash?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
The new-fashioned way is to set CTEST_BUILD_NAME in your ctest -S script prior to ctest_configure, ctest_build and ctest_submit... set(CTEST_BUILD_NAME myBuildName) Can I also do this in my CMakeLists.txt file? I guess I'm unclear on whether or not there aer some things that can *only* be

Re: [CMake] One last try

2010-06-21 Thread John Drescher
On Mon, Jun 21, 2010 at 9:59 AM, Gerry Weaver ger...@compvia.com wrote: Hello All, Thank you for your replies. The cmake command fails when trying to compile the test file. It says it cannot find kernel32.lib. I can compile and link without cmake just fine. Any ideas? Thanks, -G Try

Re: [CMake] CMake 2.8.2 RC1 - Visual Studio Express

2010-06-21 Thread Micha Renner
Am Freitag, den 18.06.2010, 10:46 -0400 schrieb David Cole: I am guessing (hopefully you will confirm) that you are using the VS Express 2010 version? (As opposed to an earlier version of VS Express...?) Yes, VS Express 2010 only. We fixed an issue that we reproduced using another

[CMake] Linking against boost_Test fails

2010-06-21 Thread Oswin Krause
Hello everybody, I am currently trying to write a cmake script for my testcases. Previously i used a command like this: g++ test.cpp -lboost_test_exec_monitor-mt -L/path/to/lib/ -lshark -I/path/to/include and everything worked fine. Now i'm using the following macro: MACRO( SHARK_ADD_TEST

[CMake] Building in stages.

2010-06-21 Thread Magnus Therning
I'm looking for some suggestions on how to tackle a problem with staged builds. In trying to convert a project which uses omake to build OCaml files I've stumbled on the issue that building one sub-part (bar) of the project needs the result of another sub-part (foo). The twist is that foo is

[CMake] ctest meant to be re-entrant?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
I'm having trouble getting my mind around how CTest is intended to be used. Could someone explain this to me? When you embed ctest-related statements into a CMakeLists.txt file, and then run cmake on that file, you produce a CTestConfig.cmake file. This file is eventually executed by ctest.

Re: [CMake] One last try

2010-06-21 Thread Bill Hoffman
On 6/21/2010 9:59 AM, Gerry Weaver wrote: Hello All, Thank you for your replies. The cmake command fails when trying to compile the test file. It says it cannot find kernel32.lib. I can compile and link without cmake just fine. Any ideas? Did you run this exact command line: cl foo.cxx

Re: [CMake] Building in stages.

2010-06-21 Thread Magnus Therning
On Mon, Jun 21, 2010 at 16:10, Michael Wild them...@gmail.com wrote: I'm looking for some suggestions on how to tackle a problem with staged builds. In trying to convert a project which uses omake to build OCaml files I've stumbled on the issue that building one sub-part (bar) of the project

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread David Cole
CTestConfig.cmake should be a source file in your source tree. Nothing should be writing it automatically. On Mon, Jun 21, 2010 at 11:21 AM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: I'm having trouble getting my mind around how CTest is intended to be used. Could

Re: [CMake] Building in stages.

2010-06-21 Thread Aeschbacher, Fabrice
I would try following in foo/CmakeLists.txt: add_custom_command(TARGET foo POST_BUILD COMMAND touch bar/CMakeLists.txt ) This will force CMake to re-build the makefiles for 'bar' (because its CMakeLists.txt has been modified) And of course, add_dependencies(bar foo) Hope it

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
Sorry, that was embarrassing. Pretend I had said, CTestTestFile.cmake instead of CTestConfig.cmake. CTestConfig.cmake should be a source file in your source tree. Nothing should be writing it automatically. On Mon, Jun 21, 2010 at 11:21 AM, Convey, Christian J CIV NUWC NWPT

Re: [CMake] [patch] cmake-2.8.1 and png-1.4.2

2010-06-21 Thread James Bigler
On Sat, Jun 19, 2010 at 4:34 PM, Thomas Klausner t...@giga.or.at wrote: cmake didn't find the png library at all, since it was renamed (again). The attached patch fixes the problem, please include it in the next release. Would a wild-card feature for the FIND_XXX functions be useful in your

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread David Cole
On Mon, Jun 21, 2010 at 1:18 PM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: Sorry, that was embarrassing. Pretend I had said, CTestTestFile.cmake instead of CTestConfig.cmake. Well, in that case CMake writes the CTestTestFile.cmake files whenever it configures a

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
Sorry, that was embarrassing. Pretend I had said, CTestTestFile.cmake instead of CTestConfig.cmake. Well, in that case CMake writes the CTestTestFile.cmake files whenever it configures a build tree. (So, from a ctest -S script, during the ctest_configure(...) call.)

Re: [CMake] One last try

2010-06-21 Thread Gerry Weaver
Hello All, I think I have found the issue. When I ran cmake-gui (I never have before), it had a dll issue. When I copied the dll from another system, everything started working. I'm not sure what happened here as this was a fresh windoze install, but it seems to work now. It's odd that only

Re: [CMake] Variable Propagation

2010-06-21 Thread Alexander Neundorf
On Monday 14 June 2010, Tyler Roscoe wrote: On Mon, Jun 14, 2010 at 01:40:38PM +0200, Aeschbacher, Fabrice wrote: I need to provide easy adding for source files to the developers, So it would be nice to just have a CMakelists.txt in every subfolder, which then edits the

Re: [CMake] Variable Propagation

2010-06-21 Thread Alexander Neundorf
On Sunday 13 June 2010, C. Meissa wrote: Hello list, A varible ${var1} can be accessed in any subdirectory’s CMakeLists.txt. However, if those files change ${var1} these changes are not accessible from the directory above. Is there any possibility of getting this done, anyway? I need to

Re: [CMake] Converting a OpenCL program into a C++ header?

2010-06-21 Thread Alexander Neundorf
On Wednesday 16 June 2010, David Cole wrote: This script will work for your simple input. It will require extra escaping work if you need to embed double quotes or backslashes. Another idea would be to convert it to something like const char code[] = {0x5f, 0x5f, 0x6b, 0x65, } then you

Re: [CMake] Linking against boost_Test fails

2010-06-21 Thread Michael Hertling
On 06/21/2010 04:53 PM, Oswin Krause wrote: Hello everybody, I am currently trying to write a cmake script for my testcases. Previously i used a command like this: g++ test.cpp -lboost_test_exec_monitor-mt -L/path/to/lib/ -lshark -I/path/to/include and everything worked fine. Now

Re: [CMake] Eclipse Galileo and CDT version 6.0.2

2010-06-21 Thread Alexander Neundorf
On Friday 11 June 2010, Hugh Sorby wrote: I am attempting to use Eclipse Galileo with CDT version 6.0.2 on windows 7 to do software development on. But I am unable to build the software. I am getting the following message in the console window in Eclipse. Which version of cmake are you

[CMake] How to copy directory as part of custom target, filtering out .svn dirs?

2010-06-21 Thread Rick Gould
I'm looking to install a directory as part of a custom target, but exclude all the Subversion .svn directories. Both of the the following work, but run as part of the make install target, which I don't want: install( DIRECTORY ${source_dir} DESTINATION ${destination_dir} PATTERN

Re: [CMake] Linking against boost_Test fails

2010-06-21 Thread Oswin Krause
On 06/21/2010 04:53 PM, Oswin Krause wrote: Hello everybody, I am currently trying to write a cmake script for my testcases. Previously i used a command like this: g++ test.cpp -lboost_test_exec_monitor-mt -L/path/to/lib/ -lshark -I/path/to/include and everything worked fine. Now

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
David is right; it's confusing because ctest can be used in several different ways. I think it's actually much worse than he says, because as far as I can tell, ctest can be used in four completely different and mutually incompatible ways, each with their own idiosyncrasies. To make

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Chris Hillery
On Mon, Jun 21, 2010 at 10:53 AM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: Thanks, that does help. Could you tell me if the following approach constent with what you guys intended? I want some parts of CTestTestfile.cmake to be automatically generated from the

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Chris Hillery
On Mon, Jun 21, 2010 at 4:47 PM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: David is right; it's confusing because ctest can be used in several different ways. I think it's actually much worse than he says, because as far as I can tell, ctest can be used in four

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
But, back to the original subject, if you can re-state what your goal is a little bit, hopefully we can figure out a way to get you there. Thanks very much. It's maybe more than can/should be done using ctest. That is, some shell scripting might be in order as well... I have a CDash

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Chris Hillery
Thanks very much. It's maybe more than can/should be done using ctest. That is, some shell scripting might be in order as well... Well, I can tell you that all of what you want and more are completely possible using CMake/CTest alone, because I'm doing everything you list below already. :)

[CMake] Searching the mailing list archives

2010-06-21 Thread Philip Boltt
Hi, Is there a way to search the entire mailing list archive? The archive link (http://www.cmake.org/pipermail/cmake/) goes to a page that seems to require going into each month individually and searching the thread subjects? Thanks, Phil ___

Re: [CMake] Searching the mailing list archives

2010-06-21 Thread Michael Hertling
On 06/22/2010 05:51 AM, Philip Boltt wrote: Hi, Is there a way to search the entire mailing list archive? The archive link (http://www.cmake.org/pipermail/cmake/) goes to a page that seems to require going into each month individually and searching the thread subjects?

[Cmake-commits] CMake branch, next, updated. v2.8.1-1449-g20b29b0

2010-06-21 Thread James Bigler
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 20b29b070ef7a6fcc1842b2554edc9798bce522c (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.1-1352-gd777057

2010-06-21 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via d7770578d124bad230690f5c5963ee5517279acc (commit) from