Re: [CMake] FindBoost not setting Boost_LIBRARIES

2010-05-11 Thread Michael Hertling
On 05/12/2010 01:06 AM, McNamara, Nate wrote: > Hello! > > I've been struggling with find_package(boost ...): although it succeeds > up to a point, it doesn't finish the job. I must be doing something > wrong. > > The output below shows that boost is found, and several of the expected > variable

Re: [CMake] Unit tests, but not CTest

2010-05-12 Thread Michael Hertling
On 05/11/2010 10:51 AM, Magnus Therning wrote: > On Mon, May 10, 2010 at 17:28, Tyler Roscoe wrote: >> Let's keep this on the list in case it helps someone else. >> >> On Fri, May 07, 2010 at 10:27:16PM +0100, Magnus Therning wrote: >>> On 07/05/10 17:24, Tyler Roscoe wrote: On Fri, May 07, 2

Re: [CMake] Unit tests, but not CTest

2010-05-12 Thread Michael Hertling
On 05/13/2010 07:36 AM, Magnus Therning wrote: > On 13/05/10 02:31, Michael Hertling wrote: >> On 05/11/2010 10:51 AM, Magnus Therning wrote: >>> I'm still having problems with this. >>> >>> I put together this: >>> >>> project( tes

Re: [CMake] Unit tests, but not CTest

2010-05-13 Thread Michael Hertling
On 05/13/2010 10:43 AM, Magnus Therning wrote: > On Thu, May 13, 2010 at 07:46, Michael Hertling wrote: >> On 05/13/2010 07:36 AM, Magnus Therning wrote: >>> On 13/05/10 02:31, Michael Hertling wrote: >>>> On 05/11/2010 10:51 AM, Magnus Therning wrote: >>>

Re: [CMake] add_custom_command - help - to specify a rule that can be used to convert all the .pc files to .cxx files

2010-05-14 Thread Michael Hertling
On 05/14/2010 08:05 AM, Michael Wild wrote: > > On 14. May, 2010, at 7:02 , Thangaraj wrote: > >> Hi All, >> >> I am trying to replace the clearmake build system with cmake for one of my >> corporate projects. >> This is a C++ based project and the interaction to database is being done >> using p

Re: [CMake] Unit tests, but not CTest

2010-05-14 Thread Michael Hertling
On 05/14/2010 08:24 AM, Magnus Therning wrote: > On 14/05/10 01:14, Michael Hertling wrote: >> On 05/13/2010 10:43 AM, Magnus Therning wrote: > [...] >>> It's not ideal. >>> >>> I'm writing some CMake scripts to ease the use of OCaml with CMake.

Re: [CMake] add_custom_command - help - to specify a rule that can be used to convert all the .pc files to .cxx files

2010-05-14 Thread Michael Hertling
On 05/14/2010 09:40 AM, Michael Wild wrote: > > On 14. May, 2010, at 9:19 , Michael Hertling wrote: > >> On 05/14/2010 08:05 AM, Michael Wild wrote: >>> >>> On 14. May, 2010, at 7:02 , Thangaraj wrote: >>> >>>> Hi All, >>>> >

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

2010-05-14 Thread Michael Hertling
On 05/13/2010 05:58 AM, Clinton Stimpson wrote: >> >> Essentially, I'd like to hear your views on handling resource copying. Is >> there an obvious method I've overlooked? What are other projects doing to >> handle resources? Any ideas with respect to other methods of handling >> resources? > >

Re: [CMake] Unit tests, but not CTest

2010-05-17 Thread Michael Hertling
On 05/16/2010 11:34 PM, Magnus Therning wrote: > On 14/05/10 22:28, Michael Hertling wrote: >> On 05/14/2010 08:24 AM, Magnus Therning wrote: > [...] >>> Thanks for this analysis, it makes the problem a lot clearer to me. One >>> thing it doesn't clarif

Re: [CMake] Can not install two executable using CPACK_NSIS_EXTRA_INSTALL_COMMANDS .

2010-05-17 Thread Michael Hertling
On 05/17/2010 02:03 PM, Benoit wrote: > Hy I've created my CPACK in a way that during the installation the > PostgreSQL and the MSVC Redistributable are installed automatically. > however this doesn't work when i put them both, but when there is only one > it work perfectly for this one > > Exempl

Re: [CMake] Compilation using Qt 4 under windows 7

2010-05-17 Thread Michael Hertling
On 05/17/2010 10:20 PM, n0p n0p wrote: > Hello, > > I have a little application which uses Qt 4. It compiles without problem on > linux but the CMakeLists.txt file > i use under linux seems to not work on windows and i don't understand why. > The CMakeLists.txt file I use > is the following: > >

Re: [CMake] distribute third party libs with NSIS

2010-05-18 Thread Michael Hertling
On 05/17/2010 08:41 PM, Michaël Presseau wrote: > Hi, I have an application and I need to create an installer. I use CPack with > NSIS. For now, I'm using : > find_package(Boost COMPONENTS thread date_time filesystem REQUIRED) > > This give me le .lib associate to the dll file. This is compiling

Re: [CMake] cmake ld fails

2010-05-18 Thread Michael Hertling
On 05/18/2010 11:13 PM, R. Bryn Fenwick wrote: > > Hi, > > I have received some code that works on one system, but is failing to > work for me. Any suggestions how to debug this would be greatly > appreciated. > > I think that I am setting everything up correctly however it appears > to ne

Re: [CMake] How to handle git branches

2010-05-19 Thread Michael Hertling
On 05/18/2010 09:18 PM, Andreas Pakulat wrote: > On 18.05.10 20:59:50, Michael Wild wrote: >> On 18. May, 2010, at 20:52 , Andreas Pakulat wrote: >>> I've recently bumped into a few problems with my usage of cmake on a >>> git-hosted project and am wondering what others are doing in such cases. >>>

Re: [CMake] Using objects in different targets

2010-05-20 Thread Michael Hertling
On 05/20/2010 01:04 PM, "Christoph Rüdiger" wrote: > Hi! > > I'm new to cmake and couldn't find a solution for my problem: > > I've a directory src containing the complete source code of the program and > another directory called test containing the source code for the unit tests. > In the top le

Re: [CMake] CMAKE -- compiling questions

2010-05-20 Thread Michael Hertling
On 05/20/2010 10:58 AM, Lucian Goron wrote: > I now have lucid lynx and I am struggling to get my old code to work on this > system > anyway, when I compile some of it I get: > > luc...@schwarz:~/work/ransac$ make > Linking CXX executable elevationMap > CMakeFiles/elevationMap.dir/home/lucian/work

Re: [CMake] Using objects in different targets

2010-05-22 Thread Michael Hertling
On 05/21/2010 03:05 PM, Christoph Rüdiger wrote: > Am 20.05.2010 um 13:33 schrieb Michael Hertling: > >> On 05/20/2010 01:04 PM, "Christoph Rüdiger" wrote: >>> [...] >>> I've a directory src containing the complete source code of the >>> pr

[CMake] QT_DEFINITIONS

2010-05-23 Thread Michael Hertling
Dear CMake community, after having taken a look into FindQt4.cmake, UseQt4.cmake and Qt4ConfigDependentSettings.cmake, I wonder how the QT_DEFINITIONS variable gets populated. As far as I can see, this variable remains empty, perhaps except for -DQT_DLL on Windows; in particular, it does not recei

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-24 Thread Michael Hertling
On 05/24/2010 11:20 AM, Jesper Eskilson wrote: > Hi, > > I have two targets, call them A and B. They both link with a third, > static library called C. C attempts to invoke a function which is > defined by however links with C, i.e. either A or B. > > This is not a problem as long as A and B ar

Re: [CMake] Error in generated nmake files on Windows

2010-05-24 Thread Michael Hertling
On 05/24/2010 03:42 PM, Michael Wild wrote: > > On 24. May, 2010, at 15:24 , Bo Thorsen wrote: > >> Hi all, >> >> I have as simple a CMakeLists.txt as possible: >> >> ADD_EXECUTABLE(comp_err comp_err.c) >> >> I did these two commands: >> >> $ set CMAKE_BUILD_TYPE=RelWithDebInfo >> $ cmake -G "NMa

Re: [CMake] QT_DEFINITIONS

2010-05-24 Thread Michael Hertling
On 05/24/2010 05:20 PM, Clinton Stimpson wrote: > > > > On Sunday, May 23, 2010 08:26:42 am Michael Hertling wrote: >> Dear CMake community, >> >> after having taken a look into FindQt4.cmake, UseQt4.cmake and >> Qt4ConfigDependentSettings.cmake, I wonder how

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-25 Thread Michael Hertling
On 05/25/2010 10:52 AM, Jesper Eskilson wrote: > On 05/24/2010 03:40 PM, Michael Hertling wrote: >> On 05/24/2010 11:20 AM, Jesper Eskilson wrote: >>> Hi, >>> >>> I have two targets, call them A and B. They both link with a third, >>> static library ca

Re: [CMake] CMAKE -- compiling questions

2010-05-25 Thread Michael Hertling
On 05/25/2010 11:16 AM, Lucian Goron wrote: > Not exactly. > I saved my work directory, with all my sources and libraries, formatted my > HDD, installed lucid lynx, and copied my work directory back. As MW already pointed out, the C++ compiler of your new distribution possibly generates object cod

Re: [CMake] QT_DEFINITIONS

2010-05-25 Thread Michael Hertling
On 05/24/2010 11:39 PM, Clinton Stimpson wrote: > On Monday, May 24, 2010 03:07:43 pm Michael Hertling wrote: >> On 05/24/2010 05:20 PM, Clinton Stimpson wrote: >>> On Sunday, May 23, 2010 08:26:42 am Michael Hertling wrote: >>>> Dear CMake community, >>&g

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-25 Thread Michael Hertling
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

Re: [CMake] CMAKE -- compiling questions

2010-05-25 Thread Michael Hertling
On 05/26/2010 12:34 AM, Lucian Goron wrote: > Back to square one ! > I solved all the VTK problems, and now it gives me the same error as in the > beginning. > > go...@schwarz:~/work/ransac/build$ make > Linking CXX executable coloredElevationMap > CMakeFiles/coloredElevationMap.dir/home/goron/wor

Re: [CMake] TRY_COMPILE without linking...

2010-05-25 Thread Michael Hertling
On 05/25/2010 06:13 PM, Theodore Papadopoulo wrote: > In porting a library (blitz) from autoconf to cmake, I have the > sub-project of testing C++ compiler features. > The autoconf way was to create some C++ files and test that they are > compiling (and just compiling not linking). > > TRY_COMPI

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] 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 th

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] Reverse dependencies (Unix Makefiles)

2010-05-27 Thread Michael Hertling
On 05/27/2010 09:05 AM, Jesper Eskilson wrote: > On 05/26/2010 05:17 PM, Michael Hertling wrote: > >>> Will this still work with an executable E wich depends on B -> C -> B. >>> Won't C pull in A as well? >> >> OK, I suppose, that means you hav

Re: [CMake] TRY_COMPILE without linking...

2010-05-27 Thread Michael Hertling
On 05/26/2010 04:03 AM, Bill Hoffman wrote: > On 5/25/2010 8:57 PM, Michael Hertling wrote: >> On 05/25/2010 06:13 PM, Theodore Papadopoulo wrote: >>> In porting a library (blitz) from autoconf to cmake, I have the >>> sub-project of testing C++ compiler features.

Re: [CMake] Problems building a shared library

2010-05-27 Thread Michael Hertling
On 05/27/2010 04:59 PM, Torri, Stephen CIV NSWCDD, W15 wrote: > I am attempting to build a shared library as a project. In order to explain > my project I will use a pseudo project with a similar setup. The library is > called TruckInterface with four directories (Wheels, Engine, Frame and > Tru

Re: [CMake] cmake - library help

2010-05-27 Thread Michael Hertling
On 05/27/2010 05:32 PM, Torri, Stephen CIV NSWCDD, W15 wrote: >> From: cmake-boun...@cmake.org on behalf of Doug Reiland >> Sent: Thu 5/27/2010 11:14 AM >> To: cmake@cmake.org >> Subject: [CMake] cmake - library help >> >> First, I am new to cmake and exploring converting our home grown build >> s

Re: [CMake] newbie question - what targets are supported?

2010-05-27 Thread Michael Hertling
On 05/28/2010 12:14 AM, Doug Reiland wrote: > okay, I have ordered the book. But, in the meantime. > > I am continuing to port a large library from in-house build to cmake > for evaluation. > What builtin targets are supported? On *nix, run CMake on a directory with an empty CMakeLists.txt, then

Re: [CMake] linker scripts and dependencies

2010-05-28 Thread Michael Hertling
On 05/28/2010 12:23 AM, Chris Bayley wrote: > I am getting to grip with cmake on an embedded system (ARM Cortex M3), > but I can't figure out if there is a better way to specify the linker > script file than with: > > set(CMAKE_EXE_LINKER_FLAGS "-T ${LINKER_SCRIPT}") > > if that then is way to

Re: [CMake] multi-tiered config file inclusion

2010-05-29 Thread Michael Hertling
On 05/28/2010 06:35 AM, Hugh Sorby wrote: > > Hi All, > > The question I have is about our old friend the static library and > config files. > > In my project I use two other libraries that I depend on (both built via > CMake) > 1. OpenCASCADE > 2. wxWidgets > > plus some others. So, whe

Re: [CMake] multi-tiered config file inclusion

2010-05-31 Thread Michael Hertling
On 05/30/2010 11:58 PM, Hugh Sorby wrote: > > So this is what I put into my OpenCASCADE config file > > SET( CONFIG_FILE_CONTENTS > "\nGET_FILENAME_COMPONENT( SELF_DIR \"\${CMAKE_CURRENT_LIST_FILE}\" > PATH )" > "\nINCLUDE( \${SELF_DIR}/OpenCASCADE-targets.cmake )" > "\nGET_FILENAME_

Re: [CMake] How can I set different include_directories values for multiple C targets in a single CMakeLists.txt file?

2010-06-01 Thread Michael Hertling
On 06/01/2010 10:34 PM, Hickel, Kelly wrote: > I'm trying to build two different versions of a library from a single > CMakeLists.txt file (akin to what the FAQ section 7.1 spells out for building > shared and static libraries). However, the include_directories command > doesn't accept a target

Re: [CMake] Set variable value based on generated files

2010-06-01 Thread Michael Hertling
On 06/01/2010 09:57 PM, Michael Wild wrote: > > On 1. Jun, 2010, at 17:02 , Hariharan wrote: > >> I do use ADD_CUSTOM_COMMAND to generate the files, but the actual generation >> is done by a different Perl script. In some cases, there is no direct >> correlation between the name of the source fil

Re: [CMake] Enabling compiler flags for one file ONLY.

2010-06-01 Thread Michael Hertling
On 06/02/2010 04:24 AM, Clark Gaebel wrote: > I have a massive .cpp file that has been autogenerated ahead of time. > However, whenever I build it, according to gcc timing information, it > spends all its time in "variable tracking". Therefore, I would like to > enable the flag -fno-var-tracking fo

Re: [CMake] cmake - escape/delay variable expansion

2010-06-02 Thread Michael Hertling
On 06/02/2010 08:37 PM, Doug Reiland wrote: > Sorry for another newbie question. > > Say, to setup a variable as follow so ${build-dir} doesn't get expanded > set(foo \${build-dir}/foo.c) > > How would a expand foo so ${build-dir} gets expanded? STRING(REPLACE "\${build-dir}" "xyz" foo "${foo}")

Re: [CMake] Extending a target??

2010-06-02 Thread Michael Hertling
On 06/02/2010 07:57 PM, Doug Reiland wrote: > It all goes back to how a current Makefile for a library is setup. > I need a shared and static version of library. > > The library includes some objects built my sub-directories. In those > sub-directories, there are unique compile flags, generated fi

Re: [CMake] cmake - escape/delay variable expansion

2010-06-02 Thread Michael Hertling
t; "${INPUT}" PARENT_SCOPE) ENDFUNCTION() So, e.g., set(foo \${build-dir}/foo.c) and expand(foo ${foo}) with build-dir=/tmp/src yield foo=/tmp/src/foo.c as desired. Regards, Michael > On Wed, Jun 2, 2010 at 3:06 PM, Michael Hertling wrote: >> On 06/02/2010 08:37 PM, Doug

Re: [CMake] shared directory with subdirs and custom command

2010-06-04 Thread Michael Hertling
On 06/02/2010 04:23 PM, Doug Reiland wrote: > I am porting a library over to cmake. > This library is built both shared and static AND has several composite > objects that get linked in. > > For example, > > subdir-a had makefile that compiled and linked a1.c a2.c into ../a.o > > top directory l

Re: [CMake] ${PROJECT}-config.cmake

2010-06-08 Thread Michael Hertling
On 06/07/2010 05:24 PM, Biddiscombe, John A. wrote: > When using the install target command as follows > > INSTALL ( > TARGETS > ${HDF5_LIB_TARGET} > EXPORT > ${HDF5_EXPORTED_TARGETS} > LIBRARY DESTINATION lib COMPONENT libraries > ARCHIVE DESTINATION

Re: [CMake] ${PROJECT}-config.cmake

2010-06-08 Thread Michael Hertling
On 06/07/2010 08:54 PM, Biddiscombe, John A. wrote: > Seems that just doing > > IF (NOT ${PROJECTXXX_SOURCE_DIR}) > include config file > ENDIF > > is enough and works ok. If the project is part of the same build, the source > dir is defined, otherwise not. To me, this seems not to be bulletpr

Re: [CMake] dependency problem

2010-06-08 Thread Michael Hertling
On 06/08/2010 10:21 PM, Torri, Stephen CIV NSWCDD, W15 wrote: >> From: cmake-boun...@cmake.org on behalf of Yifei Li >> Sent: Tue 6/8/2010 4:15 PM >> To: cmake@cmake.org >> Subject: Re: [CMake] dependency problem >> >> Thank you for reply. >> >> I already tried that. I think the problem was caused

Re: [CMake] decision based on being a nested project

2010-06-08 Thread Michael Hertling
On 06/08/2010 09:00 PM, Nathan Huesken wrote: > Hi, > > As can be read in an earlier thread, I am trying to nest a cmake > project (call it "inner") into another cmake project (call it "outer"). > The "inner" project should be extracable and run as its own project. > > Having trouble with EXTERNA

Re: [CMake] How to see the generated compiler commands?

2010-06-08 Thread Michael Hertling
On 06/08/2010 07:02 PM, Torri, Stephen CIV NSWCDD, W15 wrote: >> From: cmake-boun...@cmake.org on behalf of Felipe Sodré Silva >> Sent: Tue 6/8/2010 12:43 PM >> To: cmake@cmake.org >> Subject: [CMake] How to see the generated compiler commands? >> >> >> Hi, I wrote a cmake script that generates a u

Re: [CMake] [Cmake] Detect caller project for a sub-project

2010-06-10 Thread Michael Hertling
On 06/10/2010 12:18 PM, Filippo Trimoldi wrote: > If I have a CMake project organized in more than two level, i.e. > > CMakeLists.txt: > PROJECT(A) > add_subdirectories(./projectB) > > ./projectB/CMakeLists.txt: > PROJECT(B) > add_subdirectories(${PROJECT_SOURCE_DIR}/projectC) > > ./projectB/pro

Re: [CMake] Project initialization file path

2010-06-10 Thread Michael Hertling
On 06/10/2010 10:51 AM, Eric Noulard wrote: > 2010/6/9 Aby Louw : >> Hi, >> >> I have a Linux project that reads an initialization file on startup to >> get some file names and variables. >> >> When doing an in-source or out of source build, I generate the >> initialization file in the CMAKE_BINARY

Re: [CMake] Reusing an already built object

2010-06-12 Thread Michael Hertling
On 06/12/2010 04:10 AM, Linghua Tseng wrote: > Continue the lastest post of this article: > http://www.cmake.org/pipermail/cmake/2009-October/032615.html > >> On Tuesday 13 October 2009, Alexander Neundorf wrote: >>> On Tuesday 13 October 2009, Naram Qashat wrote: >>> Say I have a main executable

Re: [CMake] Variable Propagation

2010-06-12 Thread Michael Hertling
On 06/13/2010 02:57 AM, 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?

Re: [CMake] ${PROJECT}-config.cmake

2010-06-14 Thread Michael Hertling
On 06/14/2010 12:09 PM, Biddiscombe, John A. wrote: > Michael, > > thanks for the feedback. Following the advice given, I've modified the > project so that it generates an hdf5-config.cmake file, which checks for > If(NOT target blah blah) and then loads the hdf5-targets.cmake file. This seems

Re: [CMake] Reusing an already built object

2010-06-15 Thread Michael Hertling
On 06/13/2010 10:08 PM, Linghua Tseng wrote: > On 06/12/2010 23:30:50 Michael Hertling wrote: >> On 06/12/2010 04:10 AM, Linghua Tseng wrote: >>> ... >> Look at the following CMakeLists.txt: >> >> project(main) >> cmake_minimum_required(VERSION 2.8) &g

Re: [CMake] CheckForPthreads.c

2010-06-16 Thread Michael Hertling
On 06/15/2010 05:07 PM, Kevin Fitch wrote: > I have been converting an existing make based build system over to cmake, > and overall I am loving it so far. > > I happened to run across CheckForPthreads.c, and was a little surprised to > see that it was basically a classic example of racy code. >

Re: [CMake] Various problems deploying a python module

2010-06-17 Thread Michael Hertling
On 06/17/2010 04:23 PM, Janosch Peters wrote: > Hi list, > > I try to write a cmake script for a python module. Its finally working > now, but the solution I came up with is not very nice. > > 1. Finding the correct python environment: > > I have two python frameworks on my mac: Python2.5 whic

Re: [CMake] Cmake and Libltdl

2010-06-18 Thread Michael Hertling
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 has some libraries (we call them modules) which are used in two > applications. The applications uses lt_dladdsear

Re: [CMake] Various problems deploying a python module

2010-06-20 Thread Michael Hertling
On 06/19/2010 12:31 PM, Janosch Peters wrote: > On 2010-06-18 08:29:25 +0200, Michael Hertling said: > >> On 06/17/2010 04:23 PM, Janosch Peters wrote: >>> I have two python frameworks on my mac: Python2.5 which comes with OS >>> X, and python2.6 from macports.

Re: [CMake] Cmake and Libltdl

2010-06-20 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 u

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.

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?

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

2010-06-22 Thread Michael Hertling
On 06/20/2010 12:34 AM, Thomas Klausner wrote: > Hi! > > I've updated png in pkgsrc to 1.4.2 and had to fix some programs to > compile against that version. > > cmake didn't find the png library at all, since it was renamed There is rather a new version with a different SONAME. > (again). The a

Re: [CMake] Linking against boost_Test fails

2010-06-22 Thread Michael Hertling
On 06/21/2010 10:19 PM, Oswin Krause wrote: >> 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/ -lsha

Re: [CMake] Building in stages.

2010-06-22 Thread Michael Hertling
On 06/21/2010 05:41 PM, Magnus Therning wrote: > On Mon, Jun 21, 2010 at 16:10, Michael Wild 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

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

2010-06-22 Thread Michael Hertling
On 06/21/2010 10:34 PM, Rick Gould wrote: > 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_

Re: [CMake] Custom object files for intermediate build products

2010-06-24 Thread Michael Hertling
On 06/24/2010 08:29 AM, Tom Birch wrote: > Hi, > > I'm trying to invoke the C compiler in cmake as would happen with an > add_excecutable command, but I don't want to generate an object file. > Basically I have a script which generates a c file, I want to compile that > file in the environment

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Michael Hertling
On 06/25/2010 03:17 PM, Janosch Peters wrote: > On 2010-06-21 07:01:36 +0200, Michael Hertling said: > >> 8d87d12 > > What's that? Leet speak? No, these are the first seven and sufficiently unambiguous digits of the SHA-1 sum of the commit in CMake's Git repositor

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Michael Hertling
cmake.org/cmake.git cd cmake git show 8d87d12 Regards, Michael > On Fri, Jun 25, 2010 at 9:17 AM, Janosch Peters wrote: > >> On 2010-06-21 07:01:36 +0200, Michael Hertling said: >> >> 8d87d12 >>> >> >> What's that? Leet speak? >> >>

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Michael Hertling
On 06/25/2010 04:11 PM, Janosch Peters wrote: > On 2010-06-25 15:45:37 +0200, Michael Hertling said: > >> On 06/25/2010 03:17 PM, Janosch Peters wrote: >>> On 2010-06-21 07:01:36 +0200, Michael Hertling said: >>> >>>> 8d87d12 >>> >>>

Re: [CMake] Eliminating spurious dependencies

2010-06-25 Thread Michael Hertling
On 06/26/2010 01:09 AM, Tom Birch wrote: > I'm using add_excecutable to generate a .s file which I then parse to > generate a header file. This all works fine and all the dependencies seem to > be working, but it gets built every time, even if nothing has changed. > > I have a function to genera

Re: [CMake] An observation about CTest

2010-06-28 Thread Michael Hertling
On 06/28/2010 08:55 AM, Michael Wild wrote: > > On 28. Jun, 2010, at 7:03 , Andreas Mohr wrote: > >> Hello, >> >> On Sun, Jun 27, 2010 at 05:09:41PM -0400, cmake-requ...@cmake.org wrote: >>> Your remarks focus on old-fashioned macros so it is possible you are not >>> aware of functions? As far as

Re: [CMake] Generating dependencies with gcc -M

2010-06-28 Thread Michael Hertling
On 06/28/2010 05:24 AM, Tom Birch wrote: > CMake's dependency scanner uses its own parser to scan for #include > directives, and then builds up the dependency tree this way. I know it's > possible to rig up an invocation of gcc -M to generate the correct > dependencies, and then feed this into t

Re: [CMake] FindFoobar with non-root installation

2010-07-02 Thread Michael Hertling
On 07/02/2010 02:55 PM, Diablo 666 wrote: > > Hi, > > the last problem for today :) > > Assuming I develop a project called Foobar, which consists of some libraries > only. To make using these libraries easier, I'd like to create a > FindFoobar.cmake file to use with FIND_PACKAGE(). You shoul

Re: [CMake] Generating dependencies with gcc -M

2010-07-04 Thread Michael Hertling
On 06/29/2010 08:40 AM, Tom Birch wrote: > > On Jun 28, 2010, at 10:09 AM, Michael Hertling wrote: > >> On 06/28/2010 05:24 AM, Tom Birch wrote: >>> CMake's dependency scanner uses its own parser to scan for #include >>> directives, and then builds up the

Re: [CMake] option bug ?

2010-07-07 Thread Michael Hertling
On 07/03/2010 01:03 AM, Chris Hillery wrote: > There's a slightly nicer work-around: Change project A's CMakeLists to set > PROJB_OPENCV_LINK as a cache variable, ie, SET(PROJB_OPENCV_LINK NO CACHE > BOOLEAN "doc"). I've tested it locally and it works the way you want it to. > > It seems that CMak

Re: [CMake] option bug ?

2010-07-07 Thread Michael Hertling
On 07/07/2010 09:40 AM, Chris Hillery wrote: > On Wed, Jul 7, 2010 at 12:32 AM, Michael Hertling wrote: > >> IMO, things aren't sooo bad. ;-) >> >> [100 lines of explanation of how SET() behaves in 6 different ways elided] >> > > I think you've

Re: [CMake] Building a Version Header

2010-07-09 Thread Michael Hertling
On 07/08/2010 10:31 PM, Tyler Roscoe wrote: > On Wed, Jul 07, 2010 at 10:43:15PM -0400, John Drescher wrote: >> On Wed, Jul 7, 2010 at 9:44 PM, Clark Gaebel wrote: >>> I would like to generate file that looks something like this: >>> >>>// version.h >>>#define VERSION "v0.1-345-ga77ede8" >

Re: [CMake] building tests

2010-07-09 Thread Michael Hertling
On 07/08/2010 09:47 AM, Paul Harris wrote: > On 8 July 2010 15:31, Michael Wild wrote: > >> >> On 8. Jul, 2010, at 7:25 , Paul Harris wrote: >> >>> On 8 July 2010 12:56, Michael Wild wrote: >>> On 8. Jul, 2010, at 4:40 , Paul Harris wrote: > On 7 July 2010 23:05, Michael Wild

Re: [CMake] Copy two files into one file

2010-07-09 Thread Michael Hertling
On 07/09/2010 03:48 PM, Bo Thorsen wrote: > Hi all, > > Is there an elegant way of copying two files into one? > > Right now, I have this: > > ADD_CUSTOM_COMMAND(OUTPUT privilege_tables.sql > COMMAND copy /b > ${CMAKE_CURRENT_SOURCE_DIR}/system_tables.sq

Re: [CMake] Copy two files into one file

2010-07-10 Thread Michael Hertling
On 07/09/2010 06:39 PM, Bo Thorsen wrote: > Den 09-07-2010 16:48, Michael Hertling skrev: >> On 07/09/2010 03:48 PM, Bo Thorsen wrote: >>> Hi all, >>> >>> Is there an elegant way of copying two files into one? >>> >>> Right now, I have this:

Re: [CMake] building tests

2010-07-11 Thread Michael Hertling
On 07/10/2010 06:54 PM, Paul Harris wrote: > On 9 July 2010 22:39, Michael Wild wrote: > >> >> On 9. Jul, 2010, at 15:48 , Michael Hertling wrote: >> >>> On 07/08/2010 09:47 AM, Paul Harris wrote: >>>> On 8 July 2010 15:31, Michael Wild wrote: >

Re: [CMake] Building a Version Header

2010-07-11 Thread Michael Hertling
On 07/09/2010 01:23 PM, Johannes Stallkamp wrote: > Am 09.07.2010 12:56, schrieb Michael Hertling: >> As the version target is always out of date it will be build each time >> you (re)build main, but since CONFIGURE_FILE() obviously does not touch >> the output file as lo

Re: [CMake] option bug ?

2010-07-12 Thread Michael Hertling
On 07/07/2010 09:44 AM, Michael Wild wrote: > > On 7. Jul, 2010, at 9:32 , Michael Hertling wrote: > >> On 07/03/2010 01:03 AM, Chris Hillery wrote: >>> There's a slightly nicer work-around: Change project A's CMakeLists to set >>> PROJB_OPENCV_LINK as

Re: [CMake] calling c-compiler by hand

2010-07-12 Thread Michael Hertling
On 07/12/2010 04:14 PM, Jochen Wilhelmy wrote: > Hi! > > I'd like to call the c-compiler by hand as pre-link step to compile in > the current svn version. > > on windows i first separate the arguments > > separate_arguments(CFLAGS WINDOWS_COMMAND "${CMAKE_CXX_FLAGS} > ${CMAKE_CXX_FLAGS_DEBUG}

Re: [CMake] calling c-compiler by hand

2010-07-12 Thread Michael Hertling
On 07/12/2010 07:06 PM, Jochen Wilhelmy wrote: > Hi! > > adding > > ${CMAKE_CURRENT_SOURCE_DIR}/VersionInfo.cpp > to the source files does not have the desired effect. > If I change some file of the target, VersionInfo.cpp > does not get recompiled and therefore the current version > is not incor

Re: [CMake] calling c-compiler by hand

2010-07-12 Thread Michael Hertling
On 07/12/2010 08:24 PM, Michael Hertling wrote: > On 07/12/2010 07:06 PM, Jochen Wilhelmy wrote: >> Hi! >> >> adding >> >> ${CMAKE_CURRENT_SOURCE_DIR}/VersionInfo.cpp >> to the source files does not have the desired effect. >> If I change some file o

Re: [CMake] CMAKE__FLAGS added to link rule

2010-07-12 Thread Michael Hertling
On 07/12/2010 07:12 PM, Verweij, Arjen wrote: > As a follow-up: redefining CMAKE_Fortran_LINK_EXECUTABLE to not include > gets rid of the CMAKE_Fortran_FLAGS.. but perhaps other (useful) > stuff as well? As a sidetrack I'm starting to wonder what the purpose of > CMAKE__FLAGS is. The book lists

Re: [CMake] Transitive Link Dependencies

2010-07-14 Thread Michael Hertling
On 07/14/2010 02:38 PM, Kevin Fitch wrote: > I have found a situation where transitive link dependencies don't seem to > work the way I would expect. I have a library A that depends on B. e.g. > > target_link_libraries(A B) > # and elsewhere we have ... > target_link_libraries(foo A) > #then B get

Re: [CMake] building tests

2010-07-14 Thread Michael Hertling
On 07/14/2010 06:40 AM, Paul Harris wrote: > On 11 July 2010 20:36, Michael Hertling wrote: > >> On 07/10/2010 06:54 PM, Paul Harris wrote: >>> On 9 July 2010 22:39, Michael Wild wrote: >>> >>>> >>>> On 9. Jul, 2010, at 15:48 , Michael H

Re: [CMake] Transitive Link Dependencies

2010-07-14 Thread Michael Hertling
ain.c.o -o main2 ... -L... libA.a libB.so ... Thus, the linking is done against the shared and the static version of "A" as desired, and the dependency on "B" is resolved as desired, too. Regards, Michael > On Wed, Jul 14, 2010 at 9:13 AM, Michael Hertling wrote: > >

Re: [CMake] Macro Problem

2010-07-14 Thread Michael Hertling
On 07/14/2010 04:37 PM, michael.schm...@l-3com.com wrote: > Hello, > > My project has third party source in a subdirectory. The third party > source has to be compiled without special options. With autoconf, we > had "CFLAGS =". How would I do the same with cmake and restore CFLAGS > to their o

Re: [CMake] Finding Python3

2010-07-18 Thread Michael Hertling
On 07/18/2010 06:50 AM, Branan Riley wrote: > I've mad a very cursory effort to add Python 3 support to CMake. All > I've done so far is take FindPythonLibs and FindPythonInterp, and > change the variable names and the python versions. It doesn't yet have > framework support on Mac, as I have no id

Re: [CMake] Finding Python3

2010-07-19 Thread Michael Hertling
On 07/18/2010 09:07 PM, Branan Purvine-Riley wrote: > On Sunday 18 July 2010 09:15:17 Michael Hertling wrote: >> On 07/18/2010 06:50 AM, Branan Riley wrote: >>> I've mad a very cursory effort to add Python 3 support to CMake. All >>> I've done so far is tak

Re: [CMake] Finding Python3

2010-07-19 Thread Michael Hertling
On 07/18/2010 10:14 PM, Alan W. Irwin wrote: > On 2010-07-18 12:07-0700 Branan Purvine-Riley wrote: > >> Unfortunately, I can't think of a way to get out of using hardcoded version >> lists, since python is often in specific locations (or has a specific >> executable >> name) based on its version

Re: [CMake] Finding Python3

2010-07-20 Thread Michael Hertling
On 07/20/2010 03:26 AM, Alan W. Irwin wrote: > On 2010-07-20 00:51+0200 Michael Hertling wrote: > >> On 07/18/2010 10:14 PM, Alan W. Irwin wrote: >>> (1) http://public.kitware.com/Bug/view.php?id=10718 is fixed. In my >>> view this bug has been the source of much

Re: [CMake] Libs not Found with Make Install

2010-07-20 Thread Michael Hertling
On 07/21/2010 12:39 AM, michael.schm...@l-3com.com wrote: > Howdy, > > After a make install, the executable's shared library dependencies are > missing when I run "ldd". In particular: "By default if you don't change any RPATH related settings, CM

Re: [CMake] Finding Python3

2010-07-21 Thread Michael Hertling
On 07/21/2010 10:26 AM, Michael Wild wrote: > > On 21. Jul, 2010, at 9:56 , Marcel Loose wrote: > >> On Tue, 2010-07-20 at 09:18 -0700, Alan W. Irwin wrote: >>> On 2010-07-20 17:12+0200 Michael Hertling wrote: >>> >>>> On 07/20/2010 03:26 AM, Alan W

Re: [CMake] how to set ar/ranlib flags per target

2010-07-21 Thread Michael Hertling
On 07/21/2010 10:46 PM, Hickel, Kelly wrote: > >> -Original Message- >> From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On >> Behalf Of Verweij, Arjen >> Sent: Wednesday, July 21, 2010 3:43 PM >> To: cmake@cmake.org >> Subject: Re: [CMake] how to set ar/ranlib flags per targ

  1   2   3   4   5   6   7   8   >