Re: [CMake] duplicate file name

2009-02-19 Thread Eric Noulard
2009/2/18 Nicolas Slythe (Intern) nicolas.sly...@autodesk.com: I'm using CMake 2.4-patch 8 I have an issue with duplicate file name If I have 2 file with the same name in different folder CMake does not process the second one 2 identical **files** in separate folders should not be an issue

Re: [CMake] creating custom make targets

2009-02-19 Thread Eric Noulard
2009/2/19 Aaron Turner synfina...@gmail.com: On Wed, Feb 18, 2009 at 3:40 PM, Matthew Woehlke mw_tr...@users.sourceforge.net wrote: Aaron Turner wrote: Basically, I'm looking for a way to create a new make target test_standard and associate create_custom_target()'s to it. I assume you mean

[CMake] CMake: use new curl

2009-02-19 Thread Steven Van Ingelgem
Hi all, How can I (on windows) do the following: cmake .. -DCMAKE_USE_NEW_CURL=1 It always results in an error (upon compilation)? Scanning dependencies of target cmcurl [ 16%] Building C object Utilities/cmcurl-7.19.0/lib/CMakeFiles/cmcurl.dir/file.obj In file included from

Re: [CMake] Generator for Visual Studio 2008 with Intel C++ 11.0?

2009-02-19 Thread Philip Lowman
On Wed, Feb 18, 2009 at 8:10 PM, jessepe...@gmail.com wrote: When you have the Intel C++ compiler installed over Visual Studio, you can choose to convert a visual studio project to Intel C++ in the menu. But I can't figure out how to create a visual studio project which uses the Intel

[CMake] How to find versioned Boost libraries?

2009-02-19 Thread Peter Simons
Hi, I'm having trouble using CMake's FindBoost() with versioned libraries. Boost.System, for example, exists in the following variants: libboost_system-gcc43-mt-1_38.a libboost_system-gcc43-mt.a libboost_system-gcc43-1_38.a libboost_system-gcc43.a ... Apparently, CMake 2.6.2 won't

Re: [CMake] How to find versioned Boost libraries?

2009-02-19 Thread Andreas Pakulat
On 19.02.09 12:52:14, Peter Simons wrote: Hi, I'm having trouble using CMake's FindBoost() with versioned libraries. Boost.System, for example, exists in the following variants: libboost_system-gcc43-mt-1_38.a libboost_system-gcc43-mt.a libboost_system-gcc43-1_38.a

Re: [CMake] How to find versioned Boost libraries?

2009-02-19 Thread Pau Garcia i Quiles
On Thu, Feb 19, 2009 at 12:52 PM, Peter Simons sim...@cryp.to wrote: Hi, I'm having trouble using CMake's FindBoost() with versioned libraries. Boost.System, for example, exists in the following variants: libboost_system-gcc43-mt-1_38.a libboost_system-gcc43-mt.a

Re: [CMake] CMake: use new curl

2009-02-19 Thread Bill Hoffman
Steven Van Ingelgem wrote: Hi all, How can I (on windows) do the following: cmake .. -DCMAKE_USE_NEW_CURL=1 It always results in an error (upon compilation)? Scanning dependencies of target cmcurl The new curl is currently untested. So, to avoid the error, don't try to use it. -Bill

Re: [CMake] How to find versioned Boost libraries?

2009-02-19 Thread Peter Simons
Pau Garcia i Quiles writes: FindBoost.cmake from CMake 2.6.2 does not look for Boost 1.37.0 or newer by default. Either you update to CMake CVS (or 2.6.3RC), or you do this: SET( Boost_ADDITIONAL_VERSIONS 1.38 1.38.0 ) I added that line to my CMakeLists.txt file, but it doesn't seem to

Re: [CMake] How to find versioned Boost libraries?

2009-02-19 Thread Pau Garcia i Quiles
On Thu, Feb 19, 2009 at 3:01 PM, Peter Simons sim...@cryp.to wrote: Pau Garcia i Quiles writes: FindBoost.cmake from CMake 2.6.2 does not look for Boost 1.37.0 or newer by default. Either you update to CMake CVS (or 2.6.3RC), or you do this: SET( Boost_ADDITIONAL_VERSIONS 1.38

[CMake] Generator for Visual Studio 2008 with Intel C++ 11.0?

2009-02-19 Thread Jesse Perla
If ICProjConvert*.exe works you might be able to jurry-rig a .bat file or something to convert your projects manually after CMake runs. Here is how I got things to work: 0. It appears that the ICProjConvert***.exe is by default in the c:\Program Files\Common Files\Intel\Shared Files\ia32\Bin

Re: [CMake] How to find versioned Boost libraries?

2009-02-19 Thread Philip Lowman
Try downloading CMake 2.6.3 RC (to use it's FindBoost) then call set(Boost_DEBUG TRUE) before you call find_package(Boost...). If it doesn't work, paste the output here and we can help figure out what's wrong. .. Original Message ... On Thu, 19 Feb 2009 15:01:26 +0100 Peter Simons

Re: [CMake] How to find versioned Boost libraries?

2009-02-19 Thread Peter Simons
Pau Garcia i Quiles writes: SET( Boost_ADDITIONAL_VERSIONS 1.38 1.38.0 ) I tried version 2.6.3-RC-15, and the build succeeded nicely. Thanks for your help! Take care, Peter ___ Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] CMake Error: An attempt was made to access a variable: CMAKE_SIZEOF_INT that has not been defined

2009-02-19 Thread Michael Jackson
Why exactly might I get this error? There is someone on the vtk users list that is getting this error when trying to compile VTK 5.0.1 on OS X intel 10.5.6 with Xcode 3.1. Thanks _ Mike Jackson

Re: [CMake] creating custom make targets

2009-02-19 Thread Matthew Woehlke
Aaron Turner wrote: From the docs, it sounded like this only worked when adding commands to existing targets, not for creating new ones. Correct, as Eric already pointed out. You need to create the target first with add_custom_target. My testing though seems to show that the correct usage

Re: [CMake] CMake Error: An attempt was made to access a variable: CMAKE_SIZEOF_INT that has not been defined

2009-02-19 Thread Michael Jackson
Never mind. The individual was using a self built version of gcc 4.3 on OS X. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer

Re: [CMake] creating custom make targets

2009-02-19 Thread Aaron Turner
On Thu, Feb 19, 2009 at 8:29 AM, Matthew Woehlke mw_tr...@users.sourceforge.net wrote: Aaron Turner wrote: From the docs, it sounded like this only worked when adding commands to existing targets, not for creating new ones. Correct, as Eric already pointed out. You need to create the target

Re: [CMake] creating custom make targets

2009-02-19 Thread Brad King
Aaron Turner wrote: Whoops, my bad. Typed add_custom_target not add_custom_command. Thanks everyone, this makes sense now. To answer the original question, the best way to generate a bunch of things only when the users asks is to use add_custom_command to create the rules and then associate

Re: [CMake] Generator for Visual Studio 2008 with Intel C++ 11.0?

2009-02-19 Thread jesseperla
The real solution is to create a new sub-class of the visual studio generator for the intel compiler, or maybe it is just a flag on the existing generator. Calling ICProjConvert seems like a bad idea, and I would not accept a generator based on that solution into CMake. Fair enough. I

[CMake] Post install scripts for STGZ CPack target

2009-02-19 Thread James Bigler
Is it possible to have a script run after the STGZ install? I want to run install_name_tool on a mac after some libraries are installed in order to encode the installed path into the library names. I'll need to be able to pass the installation directory to the script. James

[CMake] feature request: easy to to specify actions for all files with a certain extension

2009-02-19 Thread Bill O'Hara
I've not seen a straightforward way to do this, but would happily be corrected :-) I have a few types of files in our project which, based on the extension, need certain actions performed as part of the build. For example, foo.S would require running cpp on the file before assembling it. Or,

Re: [CMake] Generator for Visual Studio 2008 with Intel C++ 11.0?

2009-02-19 Thread Bill Hoffman
jessepe...@gmail.com wrote: The real solution is to create a new sub-class of the visual studio generator for the intel compiler, or maybe it is just a flag on the existing generator. Calling ICProjConvert seems like a bad idea, and I would not accept a generator based on that solution into

Re: [CMake] feature request: easy to to specify actions for all files with a certain extension

2009-02-19 Thread Michael Jackson
Nice Idea. In the mean time you might want to take a look at FindQt4.cmake in the Modules directory. In that file are some macros like: # QT4_WRAP_CPP(outfiles inputfile ... ) MACRO (QT4_WRAP_CPP outfiles ) # get include dirs QT4_GET_MOC_FLAGS(moc_flags)

Re: [CMake] open source project for CMake ports?

2009-02-19 Thread Alexander Neundorf
On Wednesday 18 February 2009, Philip Lowman wrote: On Tue, Feb 17, 2009 at 4:19 PM, Eric Noulard eric.noul...@gmail.comwrote: ... if FORCE_UPDATE is YES/TRUE then the module would be updated everytime cmake is run. The default would be not to update if the file is already there locally.

Re: [CMake] Problem with testing with cmake

2009-02-19 Thread Alexander Neundorf
On Wednesday 18 February 2009, ankit jain wrote: Hi all, I have a directory structure with follwoign cmakelist as: myfold Cmakelist.txt subfolder subfolder Cmakelists.txt myfile.cpp Contents of Cmakelist of subfolder: add_executable(myfile myfile.cpp)

Re: [CMake] CPack deb generator

2009-02-19 Thread Eric Noulard
2009/2/19 Bruno Antunes sardaukar.s...@gmail.com: Hello! Is there any way to include post-install events in CPack's DEB generator? From CPackDeb.cmake I think you may include extra scripts in the control.tar.gz generated by CPack DEB generator. # CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA # This

[CMake] EXECUTABLE_OUTPUT_PATH is not just deprecated, it's harmful!

2009-02-19 Thread kent williams
So we have a big program (well a couple of them Brains2 and Brains3), and a bunch of 'unbundled' programs (BRAINSFit, BRAINSDemonWarp, BRAINSTracer etc..). We use SVN to add the 'unbundled' programs as subdirectories of our BRAINS svn checkout. So our CMakeLists.txt files in our unbundled

Re: [CMake] EXECUTABLE_OUTPUT_PATH is not just deprecated, it's harmful!

2009-02-19 Thread Eric Noulard
2009/2/19 kent williams nkwmailingli...@gmail.com: So we have a big program (well a couple of them Brains2 and Brains3), and a bunch of 'unbundled' programs (BRAINSFit, BRAINSDemonWarp, BRAINSTracer etc..). We use SVN to add the 'unbundled' programs as subdirectories of our BRAINS svn

Re: [CMake] EXECUTABLE_OUTPUT_PATH is not just deprecated, it's harmful!

2009-02-19 Thread Brad King
kent williams wrote: So we have a big program (well a couple of them Brains2 and Brains3), and a bunch of 'unbundled' programs (BRAINSFit, BRAINSDemonWarp, BRAINSTracer etc..). We use SVN to add the 'unbundled' programs as subdirectories of our BRAINS svn checkout. So our CMakeLists.txt files

[CMake] CDT Unix make file

2009-02-19 Thread Dat Chu
So I got my Eclipse CDT project imported just like the wiki said. I can build it just fine (which is great). But when I build the project, the binary is not added to my Eclipse project. Thus I cannot run it and have the output inside Eclipse Console tab. I have to a terminal, navigate to the

Re: [CMake] CDT Unix make file

2009-02-19 Thread Philip Lowman
On Thu, Feb 19, 2009 at 6:30 PM, Dat Chu dattan...@gmail.com wrote: So I got my Eclipse CDT project imported just like the wiki said. I can build it just fine (which is great). But when I build the project, the binary is not added to my Eclipse project. Thus I cannot run it and have the

[CMake] Compiling OpenGL application with CMake

2009-02-19 Thread Andrea Tagliasacchi
Hello everybody, I have given up on Makefiles, implicit rules and unreadability just annoyed me. Also the ability of generating cross platform compile files is very appealing. As far as I compile my independent code (no external libraries) everything goes fine. However, one of my applications is

Re: [CMake] Compiling OpenGL application with CMake

2009-02-19 Thread Philip Lowman
On Thu, Feb 19, 2009 at 8:18 PM, Andrea Tagliasacchi a...@cs.sfu.ca wrote: Hello everybody, I have given up on Makefiles, implicit rules and unreadability just annoyed me. Also the ability of generating cross platform compile files is very appealing. As far as I compile my independent

Re: [CMake] Compiling OpenGL application with CMake

2009-02-19 Thread Andrea Tagliasacchi
Thanks Philip, that worked flawlessly! I would say that *this* is the most compact CMake specification to compile a Glut/OpenGL application then: *find_package(GLUT) find_package(OpenGL) INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR}) ADD_EXECUTABLE(mesh_view mesh_view.cpp)

Re: [CMake] open source project for CMake ports?

2009-02-19 Thread Philip Lowman
On Thu, Feb 19, 2009 at 3:38 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Wednesday 18 February 2009, Philip Lowman wrote: This is an interesting idea. One thought I had was the potential of new features creeping into the CMake module you're downloading that aren't yet

Re: [CMake] CDT Unix make file

2009-02-19 Thread Dat Chu
Awesome Philip, that works perfectly. The binary is getting picked up. I also found that running eclipse in the command line (instead of Gnome menu) enables the application output console when I choose Run as Local C/C++ Application. Thank you very much. Dat Chu On Thu, Feb 19, 2009 at 6:48 PM,