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 target Kelly,

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 CMake find trouble for a long time, and I

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. http://www.cmake.org/Wiki/CMake_RPATH_handling In particular: By default if you don't change any RPATH related settings, CMake will

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 take FindPythonLibs and FindPythonInterp, and change

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 number.

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 idea

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 gets

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 mhertl...@online.de wrote: On 07/10/2010 06:54 PM, Paul Harris wrote: On 9 July 2010 22:39, Michael Wild them...@gmail.com wrote: On 9. Jul, 2010, at 15:48 , Michael Hertling wrote: On 07/08/2010 09:47 AM

Re: [CMake] Transitive Link Dependencies

2010-07-14 Thread Michael Hertling
. Regards, Michael On Wed, Jul 14, 2010 at 9:13 AM, Michael Hertling mhertl...@online.dewrote: 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

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 original

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 a cache variable, ie, SET(PROJB_OPENCV_LINK NO CACHE

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} /c)

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 incorporated

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 of the target, VersionInfo.cpp does not get recompiled

Re: [CMake] CMAKE_LANG_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 FLAGS 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_LANG_FLAGS is. The book

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 them...@gmail.com 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 them...@gmail.com wrote: On 8. Jul, 2010, at 7:25

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 long as it won't change, version.h

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: ADD_CUSTOM_COMMAND(OUTPUT privilege_tables.sql

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 cg.wowus...@gmail.com wrote: I would like to generate file that looks something like this: // version.h #define VERSION

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.sql

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 CMake

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 mhertl...@online.dewrote: IMO, things aren't sooo bad. ;-) [100 lines of explanation of how SET() behaves in 6 different ways elided] I think you've just proven my point. Thanks

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 dependency tree this way. I know it's possible

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 should use a

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 I know, most

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 the

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Michael Hertling
show 8d87d12 Regards, Michael On Fri, Jun 25, 2010 at 9:17 AM, Janosch Peters j...@binford3000.de wrote: On 2010-06-21 07:01:36 +0200, Michael Hertling said: 8d87d12 What's that? Leet speak? -- Janosch ___ Powered by www.kitware.com Visit

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 What's that? Leet speak? No, these are the first seven and sufficiently

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 generate

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 I've

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

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/ -lshark

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

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

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] 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] 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. If I just use FIND_PACKAGE(PythonInterp

Re: [CMake] Various problems deploying a python module

2010-06-18 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 which comes

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

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. The

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) add_library(gen1 STATIC src1.c) set(gen_src2_SRCS gen_src2

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 to

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 and a

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] [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)

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 jal...@csir.co.za: 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

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 lib

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 bulletproof:

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 by

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

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 unix makefile

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 linked in

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}) Regards,

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

2010-06-02 Thread Michael Hertling
, Michael On Wed, Jun 2, 2010 at 3:06 PM, Michael Hertling mhertl...@online.de wrote: 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

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 file and

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 for

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_COMPONENT(

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, when I build

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 do it,

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 have targets D *and* E in your project, D links against A, E

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. The autoconf way was to create some C

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 system. How

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] 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 ../ -- Configuring

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. Therefore, IMO

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 comes

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 called C. C attempts to invoke a function which is defined

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 code

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, after having taken a look into FindQt4.cmake, UseQt4

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 line whereas an approach with two

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

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_COMPILE

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 are

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 NMake Makefiles I got

[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

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 level

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

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. The setup

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 and

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 need some

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 clarify is how ADD_CUSTOM_COMMAND( TARGET ... POST_BUILD

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 Exemple

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. There are basically two macros at this point

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, I am trying to replace the clearmake build system with cmake for one of my corporate

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? You could

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 mhertl...@online.de 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: I'm still having problems

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 ty...@cryptio.net 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

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 variables are

Re: [CMake] Bug in CMake documentation?

2010-05-09 Thread Michael Hertling
On 05/09/2010 12:01 PM, Esben Mose Hansen wrote: On Sunday 09 May 2010 11:12:54 Esben Mose Hansen wrote: I quote from the documentation (2.8) if(constant) True if the constant is 1, ON, YES, TRUE, Y, or a non-zero number. False if the constant is 0, OFF, NO, FALSE, N, IGNORE, , or ends

Re: [CMake] cmake: could NOT find Boost

2010-05-05 Thread Michael Hertling
On 05/04/2010 07:19 PM, Mike Ladwig wrote: The clean build tree seems to have been the problem. Looks as if I needed to start clean every time I tried a new configuration approach. Much thanks! Typically, if FIND_PACKAGE() succeeds in locating a package the results are cached, and if you

Re: [CMake] cmake: could NOT find Boost

2010-05-05 Thread Michael Hertling
5, 2010 at 9:57 AM, Michael Hertling mhertl...@online.dewrote: On 05/04/2010 07:19 PM, Mike Ladwig wrote: The clean build tree seems to have been the problem. Looks as if I needed to start clean every time I tried a new configuration approach. Much thanks! Typically, if FIND_PACKAGE

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-29 Thread Michael Hertling
On 04/26/2010 10:07 PM, Alexander Neundorf wrote: On Sunday 25 April 2010, Michael Hertling wrote: On 04/22/2010 09:55 PM, Alexander Neundorf wrote: On Thursday 22 April 2010, Michael Hertling wrote: On 04/21/2010 09:13 PM, Alexander Neundorf wrote: On Tuesday 20 April 2010, Michael Hertling

Re: [CMake] Yet another install() vs. exclude_from_all thread

2010-04-28 Thread Michael Hertling
On 04/27/2010 04:53 PM, Daniel Hornung wrote: On 2010-04-27 14:42, Michael Hertling wrote: Are you sure this behaviour isn't the expected one? make install w.r.t. targets means: 1) Build any target that install depends on, especially all, but right not the excluded-from-all targets

Re: [CMake] Yet another install() vs. exclude_from_all thread

2010-04-27 Thread Michael Hertling
On 04/27/2010 10:31 AM, Daniel Hornung wrote: On 2010-04-27 9:24, Daniel Hornung wrote: And indeed make install ${some_name} compiles those targets fine but does not install them. Addendum: I just found that those targets are only installed if they exist already when the all target is being

Re: [CMake] Yet another install() vs. exclude_from_all thread

2010-04-27 Thread Michael Hertling
On 04/27/2010 04:21 PM, Hendrik Sattler wrote: Am Dienstag 27 April 2010 14:42:18 schrieb Michael Hertling: On 04/27/2010 10:31 AM, Daniel Hornung wrote: On 2010-04-27 9:24, Daniel Hornung wrote: And indeed make install ${some_name} compiles those targets fine but does not install them

Re: [CMake] Is full language support possible?

2010-04-26 Thread Michael Hertling
On 04/26/2010 08:00 AM, Magnus Therning wrote: What is needed to make it possible to write project( camlzip MyLanguage ) and then have all the standard macros, add_libary() etc, do the correct thing for MyLanguage? Have a look at http://public.kitware.com/Bug/view.php?id=4242.

Re: [CMake] Adding to rpath through cmake

2010-04-26 Thread Michael Hertling
On 04/26/2010 08:35 AM, Michael Darling wrote: Hi, I've been trying to figure out how to append another directory to the -rpath sent to the linker through cmake. I have a yum-installed version of stdlibs in /usr/lib64, and a svn source built one in /usr/local/lib64. I need the newer

Re: [CMake] VS2010 bug, when output executable has '.' characters

2010-04-26 Thread Michael Hertling
On 04/26/2010 04:09 AM, Jarl Lindrud wrote: I think I've found another bug in the VS2010 generator. I've generated a VS2010 solution from this CMakelists.txt: PROJECT(AAA) ADD_LIBRARY(AAA.BBB.CCC SHARED File1.cpp) , but when I build it, I find that the output file is named AAA.exe (it

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-25 Thread Michael Hertling
On 04/22/2010 09:55 PM, Alexander Neundorf wrote: On Thursday 22 April 2010, Michael Hertling wrote: On 04/21/2010 09:13 PM, Alexander Neundorf wrote: On Tuesday 20 April 2010, Michael Hertling wrote: Dear CMake community, dear CMake developers, ... There's another aspect related

<    2   3   4   5   6   7   8   >