Re: [CMake] Help creating a module for detecting mysql-connector-c++

2010-05-26 Thread Ryan Pavlik
On 05/26/2010 01:59 PM, Torri, Stephen CIV NSWCDD, W15 wrote: From: Ryan Pavlik [mailto:rpav...@iastate.edu] Sent: Wed 5/26/2010 2:42 PM To: Torri, Stephen CIV NSWCDD, W15; cmake@cmake.org Subject: Re: [CMake] Help creating a module for detecting mysql-connector-c++ Didn't test it, just ran it

[CMake] Anybody using IAR compiler here ?

2010-05-26 Thread Alexander Neundorf
Hi, is anybody here using an IAR compiler for AVR or ARM ? If so, how can I execute the assembler so that it just prints its name and version number and exits ? (i.e. the equivalent to "as --version", which gives "GNU assembler (Linux/GNU Binutils) 2.17.50.0.17.20070615 Copyright 2007 Free Softwa

Re: [CMake] FindBoost problem

2010-05-26 Thread Nico Schlömer
> the "mt" infix anymore, e.g. "/usr/local/lib/libboost_date_time.so". A > solution has been to unset Boost_USE_MULTITHREADED before invoking the > FIND_PACKAGE(Boost ...), e.g. "cmake -DBoost_USE_MULTITHREADED=0 ..". That does the trick! Thanks a lot. --Nico On Wed, May 26, 2010 at 9:50 PM, M

Re: [CMake] FindBoost problem

2010-05-26 Thread Michael Hertling
On 05/26/2010 07:52 PM, Nico Schlömer wrote: > Hi all, > > I'd like to use CMake for an application that I'm developing on an > Ubuntu machine which needs to link against Boost, i.e., a > custom-compiled installation at /opt/boost/1.43.0/. > > I compiled and installed CMake 2.8.1, FindBoost.cmake

Re: [CMake] FindBoost problem

2010-05-26 Thread Timothy Shead
On 5/26/10 11:52 AM, Nico Schlömer wrote: Hi all, I'd like to use CMake for an application that I'm developing on an Ubuntu machine which needs to link against Boost, i.e., a custom-compiled installation at /opt/boost/1.43.0/. I compiled and installed CMake 2.8.1, FindBoost.cmake comes in handy

Re: [CMake] Help creating a module for detecting mysql-connector-c++

2010-05-26 Thread Ryan Pavlik
On 05/26/2010 01:49 PM, Torri, Stephen CIV NSWCDD, W15 wrote: From: Ryan Pavlik [mailto:rpav...@iastate.edu] Sent: Wed 5/26/2010 2:42 PM To: Torri, Stephen CIV NSWCDD, W15; cmake@cmake.org Subject: Re: [CMake] Help creating a module for detecting mysql-connector-c++ Didn't test it, just ran it t

Re: [CMake] Help creating a module for detecting mysql-connector-c++

2010-05-26 Thread Torri, Stephen CIV NSWCDD, W15
> From: Ryan Pavlik [mailto:rpav...@iastate.edu] > Sent: Wed 5/26/2010 2:42 PM > To: Torri, Stephen CIV NSWCDD, W15; cmake@cmake.org > Subject: Re: [CMake] Help creating a module for detecting mysql-connector-c++ > > Didn't test it, just ran it through my cleanup software and then tweaked > it a b

Re: [CMake] Help creating a module for detecting mysql-connector-c++

2010-05-26 Thread Ryan Pavlik
Didn't test it, just ran it through my cleanup software and then tweaked it a bit by hand. Hopefully this should help - at the very least it will be more readable and standardized. With this, you should just be able to set a MYSQLCONNECTORCPP_ROOT_DIR and have it find the rest properly and au

Re: [CMake] FindMPI and setting C/C++ compiler

2010-05-26 Thread Michael Wild
Well, the MPI_COMPILER variable is certainly used internally by FindMPI to detect all the stuff. And to use MPI_LINK_FLAGS, just set them as the target property LINK_FLAGS. Michael On 26. May, 2010, at 18:15 , Marcel Loose wrote: > True, but that raises (at least) two questions: > > 1) What

Re: [CMake] FindBoost problem

2010-05-26 Thread Philip Lowman
Did you set Boost_ADDITIONAL_VERSIONS? Check the FindBoost documentation if you didn't do this. On Wed, May 26, 2010 at 1:52 PM, Nico Schlömer wrote: > Hi all, > > I'd like to use CMake for an application that I'm developing on an > Ubuntu machine which needs to link against Boost, i.e., a > cus

[CMake] FindBoost problem

2010-05-26 Thread Nico Schlömer
Hi all, I'd like to use CMake for an application that I'm developing on an Ubuntu machine which needs to link against Boost, i.e., a custom-compiled installation at /opt/boost/1.43.0/. I compiled and installed CMake 2.8.1, FindBoost.cmake comes in handy. Ubuntu ships with its own Boost developmen

Re: [CMake] Post-Generate commands

2010-05-26 Thread Bill Hoffman
On 5/26/2010 1:41 PM, LaViolette, Alan wrote: What I really want to do is generate Intel Compiler project files for the just generated visual studio project files. I am trying to do this without any cmake C++ changes at the moment. I can generate the icproj during the cmake run but have no way to

Re: [CMake] Post-Generate commands

2010-05-26 Thread LaViolette, Alan
What I really want to do is generate Intel Compiler project files for the just generated visual studio project files. I am trying to do this without any cmake C++ changes at the moment. I can generate the icproj during the cmake run but have no way to generate a new solution, so I have a script t

Re: [CMake] [CMAKE] Handling External Libraries and Resources

2010-05-26 Thread Patrik Gornicz
> Date: Sat, 15 May 2010 07:48:54 +0200 > From: mhertl...@online.de > To: cmake@cmake.org > Subject: Re: [CMake] [CMAKE] Handling External Libraries and Resources > > On 05/13/2010 05:58 AM, Clinton Stimpson wrote: >>> >>> Essentially, I'd like to hear your views on handling resource copying. Is >

[CMake] Help creating a module for detecting mysql-connector-c++

2010-05-26 Thread Torri, Stephen CIV NSWCDD, W15
I am trying to create a connector for finding mysql-connector-c++. This is a C++ library that allows a C++ application or library connect to a MySQL server. Right now it works fine on Linux but fails to locate the mysql-connector-c++ library installed on a XP 64-bit machine. On the Linux system

Re: [CMake] Post-Generate commands

2010-05-26 Thread David Cole
This is not easily possible without modifying the CMake C++ code. (Where it would be fairly easy to add a feature like this...) Perhaps filing a feature request for a "post generate action" would be the best thing to do. However, in the meantime, you could always add a custom target that executes

Re: [CMake] Post-Generate commands

2010-05-26 Thread Torri, Stephen CIV NSWCDD, W15
> From: cmake-boun...@cmake.org on behalf of LaViolette, Alan > Sent: Wed 5/26/2010 1:05 PM > To: a.neundorf-w...@gmx.net; cmake@cmake.org > Subject: Re: [CMake] Post-Generate commands > > I want to run at the end of cmake. I am generating some additional > files that are more complex then config

Re: [CMake] Post-Generate commands

2010-05-26 Thread LaViolette, Alan
I want to run at the end of cmake. I am generating some additional files that are more complex then configure can do. But I need the generated projects and solutions. -Original Message- From: Alexander Neundorf [mailto:a.neundorf-w...@gmx.net] Sent: Wednesday, May 26, 2010 12:16 PM To:

Re: [CMake] Post-Generate commands

2010-05-26 Thread Alexander Neundorf
On Wednesday 26 May 2010, LaViolette, Alan wrote: > Is it possible to have cmake run a command after all files are > generated? I want to do some additional build environment setup. You can use add_custom_command(TARGET your_target POST_BUILD COMMAND ...) to have commands executed after a targ

Re: [CMake] FindMPI and setting C/C++ compiler

2010-05-26 Thread Marcel Loose
True, but that raises (at least) two questions: 1) What's the use of the variable MPI_COMPILER if it cannot be used to set the C/C++ compiler. 2) I know how to handle MPI_COMPILE_FLAGS - use add_definitions(); MPI_INCLUDE_PATH - use include_directories(); MPI_LIBRARIES - use target_link_libraries

Re: [CMake] Generator for NetBeans 6.9

2010-05-26 Thread Alexander Neundorf
On Wednesday 26 May 2010, Sebastian Meier wrote: > Update. > > After a more thorough look at the code, I believe that Alex was on the > right track. I have copied cmExtraEclipseCDT4Generator to > cmExtraNetBeans69Generator, registered the new generator via > AddExtraGenerator() (in cmake.cxx), and

Re: [CMake] FindMPI and setting C/C++ compiler

2010-05-26 Thread Marcel Loose
Yeah, I know that works. But if that's the "proper" solution, then what's the use of FindMPI anyways? Regards, Marcel Loose. On Wed, 2010-05-26 at 11:53 -0400, Dave Partyka wrote: > The way I have accomplished this is to: > > > export CC=mpicc > export CXX=mpicxx > > > blow away your build t

Re: [CMake] TRY_COMPILE without linking...

2010-05-26 Thread Theodore Papadopoulo
On 05/26/2010 04:03 AM, Bill Hoffman wrote: On 5/25/2010 8:57 PM, Michael Hertling wrote: Use the CMAKE_FLAGS of TRY_COMPILE() to pass in a no-op for the linker: TRY_COMPILE(... CMAKE_FLAGS "-DCMAKE_CXX_LINK_EXECUTABLE='echo not linking now...'" ...) That will not work with Xcode and VS

Re: [CMake] FindMPI and setting C/C++ compiler

2010-05-26 Thread Dave Partyka
The way I have accomplished this is to: export CC=mpicc export CXX=mpicxx blow away your build tree and then re-configure re-generate On Wed, May 26, 2010 at 11:38 AM, Michael Wild wrote: > > On 26. May, 2010, at 17:20 , Marcel Loose wrote: > > > Hi all, > > > > I was wondering how one should

Re: [CMake] FindMPI and setting C/C++ compiler

2010-05-26 Thread Michael Wild
On 26. May, 2010, at 17:20 , Marcel Loose wrote: > Hi all, > > I was wondering how one should use find_package(MPI) to properly set the > C/C++ compiler(s). Normally, you call find_package() after the project() > command. However, by that time the CMAKE__COMPILER cache variables > have already b

[CMake] FindMPI and setting C/C++ compiler

2010-05-26 Thread Marcel Loose
Hi all, I was wondering how one should use find_package(MPI) to properly set the C/C++ compiler(s). Normally, you call find_package() after the project() command. However, by that time the CMAKE__COMPILER cache variables have already been set. Should one FORCE these cache variables to the value of

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-26 Thread Michael Hertling
On 05/26/2010 12:31 PM, Jesper Eskilson wrote: > On 05/25/2010 05:35 PM, Michael Hertling wrote: >> On 05/25/2010 03:58 PM, Jesper Eskilson wrote: >>> On 05/25/2010 02:41 PM, Michael Hertling wrote: >>> Exactly: The need for A's repetition in the link line is a sole affair of A and C. The

Re: [CMake] CMAKE -- compiling questions

2010-05-26 Thread Michael Hertling
On 05/26/2010 01:03 PM, Lucian Goron wrote: > Hello Michael, I followed the steps suggested by you. Here is the result. > > go...@schwarz:~/work/ransac/build$ rm -rf "rm -rf" does nothing, use "rm -rf *" instead. > go...@schwarz:~/work/ransac/build$ cmake -DCMAKE_BUILD_TYPE=debug ../ > -- Config

Re: [CMake] CMAKE -- compiling questions

2010-05-26 Thread Michael Wild
Of course I meant to rebuild EVERYTHING. Including VTK. Also, I suspect you built your VTK with VTK_USE_FFMPEG_ENCODER disabled which is probably why you get the linker-error. Michael On 26. May, 2010, at 13:03 , Lucian Goron wrote: > Hello Michael, I followed the steps suggested by you. Here

Re: [CMake] CMAKE -- compiling questions

2010-05-26 Thread Lucian Goron
Hello Michael, I followed the steps suggested by you. Here is the result. go...@schwarz:~/work/ransac/build$ rm -rf go...@schwarz:~/work/ransac/build$ cmake -DCMAKE_BUILD_TYPE=debug ../ -- Configuring done -- Generating done -- Build files have been written to: /home/goron/work/ransac/build go...@

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-26 Thread Jesper Eskilson
On 05/25/2010 05:35 PM, Michael Hertling wrote: On 05/25/2010 03:58 PM, Jesper Eskilson wrote: On 05/25/2010 02:41 PM, Michael Hertling wrote: Exactly: The need for A's repetition in the link line is a sole affair of A and C. Therefore, IMO, it should not be brought explicitly to D's link line

Re: [CMake] Generator for NetBeans 6.9

2010-05-26 Thread Michael Wild
On 26. May, 2010, at 9:35 , Sebastian Meier wrote: > [...] > > Questions: > > - Do we already have a class or API for XML output I can use? Or will I have > to implement a small XmlWriter class? Looks like it doesn't exist. There's a class (cmXMLSafe) that properly escapes/encodes strings, bu

Re: [CMake] Generator for NetBeans 6.9

2010-05-26 Thread Sebastian Meier
Update. After a more thorough look at the code, I believe that Alex was on the right track. I have copied cmExtraEclipseCDT4Generator to cmExtraNetBeans69Generator, registered the new generator via AddExtraGenerator() (in cmake.cxx), and removed any Eclipse-specific stuff from my new generator.