Re: [CMake] find_library and static library

2011-11-17 Thread Michael Hertling
On 11/17/2011 10:28 AM, Romain LEGUAY wrote: > Hello everyone! > I found in previous message there is none option to specify to > find_library function to search just static library. It was for CMake 2.6. > > Has it got any change with the new version of CMake? AFAIK, it hasn't, since the root o

Re: [CMake] TCL modules

2011-11-17 Thread Michael Hertling
On 11/17/2011 12:28 AM, Joe Brandt wrote: > I have a couple issues, that I'd like to help fix, with the current > FindTCL.cmake, FindTclsh.cmake, FindWish.cmake, and FindTclStub.cmake that > make them unusable for me. The first is they do not always find the > various components from the same Tcl

Re: [CMake] Circular dependencies because of file names?

2011-11-17 Thread Michael Hertling
On 11/16/2011 06:36 PM, Jookia wrote: > I've actually used that workaround, but it seems dirty as it shows up in > IDE targets like Visual Studio or other IDEs or makefiles. In fact, I > kind of like the 'generating /docs' part of the makefile. > > Would it just be smarter to rename the targ

Re: [CMake] shell level access to values of cmake variables

2011-11-17 Thread Michael Hertling
On 11/10/2011 06:48 PM, vagn scott wrote: > > > in my CMakeLists.txt file I have a statement > > project(hello_foo_baz) > > This defines PROJECT_NAME among other things. > > is there something like > > cmake --dump-var PROJECT_NAME > > that would output the string > > hell

Re: [CMake] One project, one platform, 2 compilers

2011-11-18 Thread Michael Hertling
On 11/17/2011 05:18 PM, Paul Hansen wrote: > Hi > > I have a project that has to be compiled with two different compilers on > the same computer. > > Can I do that from the same CMakeLists.txt file? What do you mean exactly? (1) Compile the project twice, each time completely with a different c

Re: [CMake] TCL modules

2011-11-18 Thread Michael Hertling
> On Thu, Nov 17, 2011 at 6:27 AM, Michael Hertling wrote: > >> On 11/17/2011 12:28 AM, Joe Brandt wrote: >>> I have a couple issues, that I'd like to help fix, with the current >>> FindTCL.cmake, FindTclsh.cmake, FindWish.cmake, and FindTclStub.cmake >> th

Re: [CMake] Transitive linking

2011-11-18 Thread Michael Hertling
On 11/18/2011 10:03 PM, James Bigler wrote: > 2011/11/18 Alexander Neundorf > >> On Friday 18 November 2011, James Bigler wrote: >>> I thought CMake knew how to not drag all the dependent libraries once you >>> linked an executable module. >>> >>> add_library(A STATIC a.cpp) >>> add_library(B SHA

Re: [CMake] Transitive linking

2011-11-21 Thread Michael Hertling
On 11/19/2011 08:02 AM, James Bigler wrote: > On Fri, Nov 18, 2011 at 5:51 PM, Michael Hertling wrote: > >> On 11/18/2011 10:03 PM, James Bigler wrote: >>> 2011/11/18 Alexander Neundorf >>> >>>> On Friday 18 November 2011, James Bigler wrote: >>

Re: [CMake] One project, one platform, 2 compilers

2011-11-21 Thread Michael Hertling
_Cross_Compiling and the ML, of course. Regards, Michael > On Fri, Nov 18, 2011 at 2:26 PM, Michael Hertling wrote: > >> On 11/17/2011 05:18 PM, Paul Hansen wrote: >>> Hi >>> >>> I have a project that has to be compiled with two different compilers on >&

Re: [CMake] Bad documentation of the LINK_INTERFACE_LIBRARIES property and other transitive linking topics

2011-11-23 Thread Michael Hertling
On 11/23/2011 10:25 AM, Alan W. Irwin wrote: > cmake-2.8.6 has the following documentation of the > LINK_INTERFACE_LIBRARIES property for targets: > >LINK_INTERFACE_LIBRARIES > List public interface libraries for a shared library or executable. > > By default linking to a shar

[CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-19 Thread Michael Hertling
about the available components, imperatively refer to the XXX_YY_FOUND variables." Or, in other words: XXX_FOUND simply does not carry enough information about available components from a multi-component package, so, IMHO, a component's absence isn't sufficient to n

Re: [CMake] I'm confused with Find*.cmake and *-config.cmake

2010-04-20 Thread Michael Hertling
a proper place, see above, you even don't have to tell CMake where to find it; otherwise, consider CMAKE_PREFIX_PATH from the command line or via ccmake et al. 'hope this helps a little bit, and to CMake experts: Feel free to beat me if I'm telling nonsense, but give some enlightenm

Re: [CMake] I'm confused with Find*.cmake and *-config.cmake

2010-04-21 Thread Michael Hertling
On 04/20/2010 09:40 PM, Benoit Thomas wrote: > On 2010-04-20 03:27, Michael Hertling wrote: >> On 04/19/2010 10:07 PM, Benoit Thomas wrote: >> >> >>> I'm using an external library which is already compiled. I have wrapped >>> the library in a My

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-22 Thread Michael Hertling
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 to this I'd like to comment on: During >> the abovementioned c

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-22 Thread Michael Hertling
On 04/21/2010 09:29 PM, S Roderick wrote: > On Apr 21, 2010, at 15:13 , Alexander Neundorf wrote: > >> On Tuesday 20 April 2010, Michael Hertling wrote: >>> Dear CMake community, dear CMake developers, >>> >> ... >>> There's another aspect rela

Re: [CMake] Looking for a way to do 'make install' to a destination

2010-04-23 Thread Michael Hertling
On 04/19/2010 04:22 PM, Magnus Therning wrote: > On Mon, Apr 19, 2010 at 11:36, Remy Chibois wrote: >> >> On Apr 19, 2010, at 12:16 PM, Magnus Therning wrote: >> >>> It's some times useful to do an install rooted not at '/' but at some >>> arbitrary location. ?Is there some way of doing this with

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-23 Thread Michael Hertling
On 04/22/2010 01:50 PM, S Roderick wrote: > On Apr 22, 2010, at 06:21 , Michael Hertling wrote: > >> On 04/21/2010 09:29 PM, S Roderick wrote: >>> On Apr 21, 2010, at 15:13 , Alexander Neundorf wrote: >>> >>>> On Tuesday 20 April 2010, Michael Hertli

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-24 Thread Michael Hertling
On 04/22/2010 02:04 PM, Michael Wild wrote: > > On 22. Apr, 2010, at 13:50 , S Roderick wrote: > >> On Apr 22, 2010, at 06:21 , Michael Hertling wrote: >> >>> On 04/21/2010 09:29 PM, S Roderick wrote: >>>> On Apr 21, 2010, at 15:13 , Alexander Neundorf

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, >&g

Re: [CMake] VS2010 problem with upper case CPP extension

2010-04-25 Thread Michael Hertling
On 04/25/2010 12:10 PM, Michael Wild wrote: > > On 25. Apr, 2010, at 11:37 , Jarl Lindrud wrote: > >> >> Hi, >> >> I've just run cmake 2.8.1, with the "Visual Studio 10" generator, on a cmake >> project that I've previously been running the VS2008 generator on. >> >> There appears to be a proble

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 .

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 newe

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.

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

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_

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

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:

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
Regards, Michael > > On Wed, May 5, 2010 at 9:57 AM, Michael Hertling wrote: > >> 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

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() >>> >>> >>> 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,

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-24 Thread Michael Hertling
On 11/24/2011 07:08 PM, g...@novadsp.com wrote: > How can I do this? Specifically generating for XCode. > > My cmakefile has this: > > if (${CMAKE_CFG_INTDIR} STREQUAL "Debug") > Message("We are generating/building debug code for ${this_target}") > ADD_DEFINITIONS(/D_DEBUG) > endif() > > But _DE

Re: [CMake] Bad documentation of the LINK_INTERFACE_LIBRARIES property and other transitive linking topics

2011-11-24 Thread Michael Hertling
On 11/24/2011 08:20 AM, Hendrik Sattler wrote: > BTW: linking plugins against an executable is really not good style. > Put the common part into a library and link the executable and the > plugin against that library. Ignore the necessity or desire to load the plugin at run time for a moment. T

Re: [CMake] Do not build/install import library

2011-11-24 Thread Michael Hertling
On 11/24/2011 07:53 PM, Mathias Gaunard wrote: > On 11/23/2011 10:14 PM, Matthias Gehre wrote: >> Hi, >> >> thanks for this very nice cmake. I switched just recently to get >> lightspark (lightspark.github.com) >> crossplatform, and it worked really smooth. >> >> One question, though: I cannot seem

Re: [CMake] link_directories issue, cmake 2.8.5

2011-11-24 Thread Michael Hertling
On 11/23/2011 05:39 PM, Vladimir Chebotarev wrote: > Hello. > > I've just found an issue with link_directories and cmake 2.8.5. > If I give an absolute but not normalized path like > c:/bla-bla-bla/../bla/bla as its argument (with default CMP0015), > cmake thinks it is relative path and shows a wa

Re: [CMake] Do not build/install import library

2011-11-25 Thread Michael Hertling
On 11/25/2011 10:22 AM, Matthias Gehre wrote: > 2011/11/25 Michael Hertling : >> On 11/24/2011 07:53 PM, Mathias Gaunard wrote: >>> On 11/23/2011 10:14 PM, Matthias Gehre wrote: >>>> Hi, >>>> >>>> thanks for this very nice

Re: [CMake] Checking for empty list

2011-11-25 Thread Michael Hertling
On 11/25/2011 03:15 PM, Michael Wild wrote: > On 11/25/2011 02:52 PM, Daniel Dekkers wrote: >> Hi, >> >> >> >> I know it should be out there somewhere in the documentation, but can’t >> find it. >> >> How do I check for an empty list? >> >> I can use LIST(LENGTH MYLIST LISTCOUNT) with an extra va

Re: [CMake] Why does CMake use relative linking when I replace a shared object?

2011-11-25 Thread Michael Hertling
On 11/25/2011 12:28 PM, Mathias Gaunard wrote: > There is some strange CMake behaviour I don't quite understand. > > In the project attached, I build a shared library for which I want to > specify a custom build command; to do this I generate a dummy library > which I then replace by another fil

Re: [CMake] Why does CMake use relative linking when I replace a shared object?

2011-11-25 Thread Michael Hertling
On 11/25/2011 08:42 PM, Mathias Gaunard wrote: > On 11/25/2011 07:19 PM, Michael Hertling wrote: > >> That's caused by the absence of an SONAME in your baz/libtest.so. If >> there's no DT_SONAME tag in a shared library you are linking against, >> the linker

Re: [CMake] parallel build using "cmake --build"?

2011-11-26 Thread Michael Hertling
On 11/26/2011 04:16 AM, Steve M. Robbins wrote: > Hi, > > To build VTK on our windows build server, I wrote a small batch script > that invokes "cmake --build". > > My developer machine is multicore; is there a way to get "cmake --build" > to run multiple jobs? > > Thanks, > -Steve "cmake --bu

Re: [CMake] CMake with cminpack, link libraries

2011-11-26 Thread Michael Hertling
On 11/25/2011 05:02 PM, Fabian Torres wrote: > Hi > > I'm trying to use cminpack. I've downloaded cminpack 1.1.3 and configure it > with cmake to create a Xcode 3.2 project. After building the xcode project > successfully I found that it generates a debug directory which contains the > library or

Re: [CMake] BUILD_COMMAND having a hard time getting usable command lines

2011-11-27 Thread Michael Hertling
On 11/26/2011 07:14 PM, J Decker wrote: > Earlier I wondered if there was a way to stop recusive invocation of a > build command in a cmake script - I found something like a solution; > when I run the command, set an environment variable and don't run the > command if that environment variable is s

Re: [CMake] parallel build using "cmake --build"?

2011-11-27 Thread Michael Hertling
On 11/27/2011 05:21 PM, Steve M. Robbins wrote: > On Sat, Nov 26, 2011 at 10:46:10AM -0500, John Drescher wrote: >> On Fri, Nov 25, 2011 at 10:16 PM, Steve M. Robbins wrote: >>> Hi, >>> >>> To build VTK on our windows build server, I wrote a small batch script >>> that invokes "cmake --build". >>>

Re: [CMake] Finding PythonLibs using PythonInterp

2011-11-28 Thread Michael Hertling
On 11/28/2011 03:54 PM, Felipe Lema wrote: > Hello, everyone > > I was trying to use cmake to build python c++ extensions in win7, but > couldn't get cmake to detect PythonLibs. At least, not without editing the > windows registry. Since it could detect PythonInterp, I got it working > using the d

Re: [CMake] BUILD_COMMAND having a hard time getting usable command lines

2011-11-28 Thread Michael Hertling
On 11/28/2011 08:43 PM, J Decker wrote: > So the idea was, to make the build process a single click (or couple) > or at least a single application to build. Since CMake knows how to > build a project, it became easier to maintain a cmakelists.txt which > does the build than a batch file... > > So

Re: [CMake] Capturing matches in regex groups

2011-11-28 Thread Michael Hertling
On 11/28/2011 11:35 PM, Robert Dailey wrote: > I haven't really seen a way to get a list of group matches in a regex. For > example, string( REGEX MATCH ) only returns the whole string matched, not > just what was in the capture groups. If I do this: > > (\\w+)\\,(\\w+)\\,(\\w+) > > and I match t

Re: [CMake] Clen-up pre-built software

2011-11-29 Thread Michael Hertling
On 11/22/2011 11:42 AM, t m wrote: > Hi Community, > > In the large project we a having periodic taks which build a couple of > projects and store the result of the build in one specific place. > Once it's build the rest of the team can use this artifacts becouse > those are exported by using of e

Re: [CMake] 2D arrays

2011-11-29 Thread Michael Hertling
On 11/30/2011 12:28 AM, Robert Dailey wrote: > I have created a pretty clean solution to this until there is native > support for multi-dimensional arrays in CMake. I have attached the module, > hopefully it will prove useful to others. Here is an example of how to use > it: > > set( two_dee_array

Re: [CMake] FindDCMTK Not setting up DCMTK_INCLUDE_DIRECTORIES Correctly?

2011-11-29 Thread Michael Hertling
On 11/29/2011 08:49 PM, Thomas Sondergaard wrote: > On 2011-11-29 18:19, kent williams wrote: >> I actually install DCMTK in a subdirectory of my top-level build, and >> then my program that uses DCMTK is configured with DCMTK_DIR. > > What is DCMTK_DIR pointing at? The installation dir or the sou

Re: [CMake] 2D arrays

2011-11-30 Thread Michael Hertling
On 11/30/2011 03:29 AM, Robert Dailey wrote: > On Tue, Nov 29, 2011 at 5:57 PM, Michael Hertling wrote: > >> Just some spontaneous questions/remarks: >> > > Thanks; I really appreciate it! > > >> - Why do you use macros instead of functions? >> > &

Re: [CMake] output of custom_command ?

2011-12-01 Thread Michael Hertling
On 12/01/2011 03:50 PM, Anders Wallin wrote: > Hi all, > > I'm building some Lyx documentation with asymptote figures. > > I'm generating the figures in EPS format like this: > add_custom_command( > OUTPUT ${ASYFIG}.eps > COMMAND asy ${CMAKE_CURRENT_SOURCE_DIR}/${ASYFIG}.asy >

Re: [CMake] FindDCMTK Not setting up DCMTK_INCLUDE_DIRECTORIES Correctly?

2011-12-01 Thread Michael Hertling
On 12/01/2011 08:22 AM, Thomas Sondergaard wrote: > On 2011-11-30 07:23, Michael Hertling wrote: >> On 11/29/2011 08:49 PM, Thomas Sondergaard wrote: >>> On 2011-11-29 18:19, kent williams wrote: >>>> I actually install DCMTK in a subdirectory of my top-level build,

Re: [CMake] Visual Studio configurations with cmake

2011-12-03 Thread Michael Hertling
On 12/03/2011 12:31 PM, terje loe wrote: > > Hi, > I'm trying to set up cmake for my visual studio project.. I' ve set it up so > it works fine for make files, but got some problems setting it up as I want > it for visual studio. > 1. > I'm setting up different visual studio configurations so I

Re: [CMake] Copy a input file from src folder to EXECUTABLE_OUTPUT_PATH

2011-12-05 Thread Michael Hertling
On 12/05/2011 10:30 PM, Totte Karlsson wrote: > Hi, > I have a tree of applications, some needing an inoput file to run. I have > CMake > compiling all of them and moving the executables to > EXECUTABLE_OUTPUT_PATH. In the src directories, I have some input.txt files > that > I want to be moved

Re: [CMake] Question about add_custom_target

2011-12-07 Thread Michael Hertling
On 12/07/2011 09:09 PM, Robert Dailey wrote: > Anyone? AFAICT, all generator expressions documented for ADD_CUSTOM_COMMAND() and ADD_TEST() also work for ADD_CUSTOM_TARGET() although this isn't mentioned explicitly. IMO, you should file an appropriate bug report in order to have ADD_CUSTOM_TARGET(

Re: [CMake] target dependency in subdirectory not found

2011-12-13 Thread Michael Hertling
On 12/12/2011 08:42 PM, Jos van den Oever wrote: > I'm trying to get get CMake to do the equivalent from this Makefile. I'm > using > cp in this simple example, but want to use different commands in my project. > > ==Makefile== > srcdir=.. > > hij: a/efg > cp a/efg hij > a/efg: $(srcdir)/a/

Re: [CMake] Top level target depending on a file

2011-12-13 Thread Michael Hertling
On 12/12/2011 11:40 AM, Alexander Broekhuis wrote: > Hi, > > Can anyone help me with this? I haven't found a proper solution myself yet.. Does the following examplary project do what you intend? CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) PROJECT(P C) SET(CMAKE_VERBOSE_MAKEFILE ON) # The lib

Re: [CMake] Compiler debug file, howto remove in clean?

2011-12-13 Thread Michael Hertling
On 12/13/2011 02:00 PM, Totte Karlsson wrote: > Hi, > I'm using cmake with codegear compiler. I have been able to setup a build > system > to compile some dll's and executables. > When compiled in Debug mode, a extra .tds file is generated and placed in the > same folder as the executable, or dl

Re: [CMake] Top level target depending on a file

2011-12-13 Thread Michael Hertling
sary to remove the ZIP file prior to triggering its target after the library has been (re)built. This could also be slightly more efficient. Regards, Michael PS: Please don't drop the ML. > 2011/12/13 Michael Hertling > >> On 12/12/2011 11:40 AM, Alexander Broekhuis wrote: >>

Re: [CMake] Fwd: Re: Compiler debug file, howto remove in clean?

2011-12-13 Thread Michael Hertling
On 12/13/2011 04:04 PM, Totte Karlsson wrote: > not sure if the following was sent to the newsgroup? Wasn't. ;-) > Sorry if posting double.. Only to me. ;) >>> set_property(DIRECTORY PROPERTY ADDITIONAL_MAKE_CLEAN_FILES >>> >>> ${RUNTIME_OUTPUT_DIRE

Re: [CMake] Copy a input file from src folder to EXECUTABLE_OUTPUT_PATH

2011-12-13 Thread Michael Hertling
On 12/12/2011 04:36 PM, Michael Wild wrote: > On 12/12/2011 04:29 PM, Totte Karlsson wrote: >>> >>> At build time: >>> >> >>> ADD_CUSTOM_COMMAND(TARGET OneOfYourExecutables >>> COMMAND ${CMAKE_COMMAND} -E copy_if_different >>> //input.txt $) >>> ADD_CUSTOM_COMMAND(TARGET AnotherExecut

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-13 Thread Michael Hertling
On 12/13/2011 09:21 PM, David Cole wrote: > On Tue, Dec 13, 2011 at 2:09 PM, Robert Dailey wrote: >> Thanks for the info. It's a bit disappointing that it doesn't work like I >> expect. The CMAKE_MFC_FLAG should work as you say the link flags should, but >> it does not. As long as CMAKE_MFC_FLAG i

Re: [CMake] Top level target depending on a file

2011-12-14 Thread Michael Hertling
hus, to express this dependency, you need to have an own target for the ZIP file, so you will end up with two targets if you want to have the dependencies set up correctly, although you'd prefer to have just one. BTW, is this really bad? Regards, Michael >> PS: Please don

Re: [CMake] Top level target depending on a file

2011-12-14 Thread Michael Hertling
On 12/14/2011 10:55 AM, Alexander Broekhuis wrote: > Hi, > > Thanks for you replies, > > >>> In my case the output is the ZIP file. So the zip file is produced by the >>> top level target, and I don't want/need a separate target for it. >> >> Yes but CMake's jobs is to build libraries and execut

Re: [CMake] Top level target depending on a file

2011-12-14 Thread Michael Hertling
le as a part of the > compilation unit. So a change to the file would trigger a rebuild of the > library and zip file, instead of only the zip file. In this regard, the question is: Is the manifest actually necessary to build the library, i.e. must the latter be recompiled and/or relinked

Re: [CMake] Fwd: Re: Compiler debug file, howto remove in clean?

2011-12-14 Thread Michael Hertling
On 12/14/2011 09:43 AM, Totte Karlsson wrote: > > On 12/13/2011 4:15 PM, David Cole wrote: >> RUNTIME_OUTPUT_DIRECTORY is a target property, not a variable. You'd >> have to use get_property to retrieve its value, not >> ${RUNTIME_OUTPUT_DIRECTORY}... > > Thanks! I ended up with the following, in

Re: [CMake] Transitive link question

2011-12-15 Thread Michael Hertling
On 12/13/2011 11:00 PM, Biddiscombe, John A. wrote: >> > Sure, when project A is loaded into project B it either needs to search and > load the hdf5 cmake file or require that to be done in project B before > loading project A. Then the hdf5 target will be known in project B too and > linking wi

Re: [CMake] How to find list of directories

2011-12-15 Thread Michael Hertling
On 12/15/2011 02:34 PM, Renato Utsch wrote: > Hello, > > I am writing a plugin compiler that will do linke this: > > -- main > plugin > | CMakeLists.txt (in the plugin folder) > -- example (example plugin) > --| CMakeLists.txt (in the example folder) > > The CMakeLists.txt file

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-16 Thread Michael Hertling
On 12/13/2011 11:19 PM, Michael Hertling wrote: > On 12/13/2011 09:21 PM, David Cole wrote: >> On Tue, Dec 13, 2011 at 2:09 PM, Robert Dailey wrote: >>> Thanks for the info. It's a bit disappointing that it doesn't work like I >>> expect. The CMAKE_MFC_FLAG

Re: [CMake] 2D arrays

2011-12-16 Thread Michael Hertling
On 12/01/2011 06:04 PM, Robert Dailey wrote: > On Wed, Nov 30, 2011 at 7:18 PM, Michael Hertling wrote: > >> On 11/30/2011 03:29 AM, Robert Dailey wrote: >>> I use macros so the _array2d_ variables fall through the scope of the >> macro >>> and are available

Re: [CMake] 2D arrays

2011-12-16 Thread Michael Hertling
ave PARENT_SCOPE show the desired effect. Regards, Michael > On Thu, Dec 1, 2011 at 11:04 AM, Robert Dailey wrote: > >> On Wed, Nov 30, 2011 at 7:18 PM, Michael Hertling wrote: >> >>> On 11/30/2011 03:29 AM, Robert Dailey wrote: >>>> I use macros so the _arra

Re: [CMake] [EXTERNAL] Re: execute_process appending redirected output

2011-12-30 Thread Michael Hertling
On 12/28/2011 05:39 PM, Belcourt, K. Noel wrote: > Hi Aaron, > > On Dec 27, 2011, at 11:04 PM, Aaron Ten Clay wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 12/27/11 16:16, Belcourt, Kenneth wrote: >>> I'm trying to get CMake to execute this command >>> >>> INSTALL(CODE >>>

Re: [CMake] Trying to get build info for a target

2012-01-01 Thread Michael Hertling
On 01/01/2012 07:47 AM, Gary Kramlich wrote: > On 12/31/2011 05:03 PM, Robert Dailey wrote: >> Storing the source directory will require the exact idea you had >> mentioned. Use an internal cache variable or, even better, a target >> property. This is how I have done it. Each target that I create >

Re: [CMake] RC compiler on Linux - new problem

2012-01-04 Thread Michael Hertling
ENDIF() PROJECT(... RC) (2) Have you already complaint to the Winteracter people w.r.t. their RC's behavior? ;-) IMO, forcing the output into the same location as the input is hardly acceptable, as source trees might be read- only. Regards, Michael > Michael Hertlin

Re: [CMake] Add Custom COmmand and CMAKE_CFG_INTDIR

2012-01-04 Thread Michael Hertling
On 01/04/2012 10:11 PM, Bill Hoffman wrote: > On 1/4/2012 4:03 PM, Michael Jackson wrote: >> I robbed this from the HDF5 project which does something very similar to >> what I am doing: >> >> SET (CMD ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}${CFG_INIT}/H5detect${EXE_EXT}) >> >> That "seems" to at least p

Re: [CMake] Problem with set_source_files_properties

2012-01-05 Thread Michael Hertling
On 01/05/2012 02:42 PM, Mateusz Loskot wrote: > On 5 January 2012 12:31, vivek goel wrote: >> I am using code >> where f contains the file name >> >> >> set(MY_PATH "-D__RELATIVE_PATH__=\\\"ab\\\"") >> set_source_files_properties(${f} PROPERTIES >> COMPILE_FLAGS ${MY_PATH}) >> >> I am not able t

Re: [CMake] Interrupt problems in cmake-gui

2012-01-05 Thread Michael Hertling
On 12/31/2011 02:10 AM, Robert Dailey wrote: > I'd like to introduce boost into CMake for this. Whenever I've advocated CMake as build system, one of the strongest selling points has been its self-sufficiency, i.e. the fact that it does not have any external dependencies except for a C++ environm

Re: [CMake] How to "install" then "test"?

2012-01-05 Thread Michael Hertling
On 12/29/2011 08:01 PM, Denis Scherbakov wrote: > Dear All! > > Maybe someone can help me: I have a project, we compile binaries and then > using various INSTALL directives finish the job by copying files where they > belong: to "bin", "man", "libexec", etc. The point is, we need to run > executa

Re: [CMake] how to setup cmake_c/xx_flags per toolchain?

2012-01-06 Thread Michael Hertling
On 01/07/2012 12:56 AM, Paweł Sikora wrote: > Hi, > > i'm trying to setup a toolchain file for cross-compilation with target specfic > options and afaics cmake dosen't use flags from such file: > > $ cat CMakeLists.txt > cmake_minimum_required( VERSION 2.8.7 ) > project( test CXX ) > add_executa

Re: [CMake] How not to copy a link

2012-01-06 Thread Michael Hertling
On 01/06/2012 07:51 PM, Kevin Burge wrote: > Thanks David. These are external libraries built outside of CMake, > without CMake, not imported via any of the import capabilities of cmake, > and that need to be installed alongside my CMake built files. I think > I'm just going to do the install

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread Michael Hertling
On 01/09/2012 02:34 PM, David Cole wrote: > On Sun, Jan 8, 2012 at 11:59 PM, Óscar Fuentes wrote: >> When MSBuild.exe is used (typically by "cmake --build") for building a >> VS2010 project generated by cmake, it correctly invokes cmake for >> regenerating the project files if changes to the CMake

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread Michael Hertling
On 01/09/2012 10:05 AM, Michael Stürmer wrote: > I have found some topics related to my issue on the web, but none so far > helped me to fix it: > > I use Visual Studio 2010 on Windows 7 64Bit. > > During my build, all binaries are collected in one folder, which makes it > easier for me to de

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread Michael Hertling
On 01/09/2012 07:56 PM, Óscar Fuentes wrote: > Michael Hertling > writes: > >> On 01/09/2012 02:34 PM, David Cole wrote: >>> No trick, but to avoid this, perhaps we should change the "--build" >>> handler to run the cmake configure & generate

Re: [CMake] Cmake coloring gcc output on errror

2012-01-11 Thread Michael Hertling
On 01/10/2012 07:17 PM, vivek goel wrote: > Is there a way to color warning/error of gcc with cmake ? AFAIK, no, but you might remember the power of *nix, feed the output of "make VERBOSE=1 2>&1" into sed/awk/perl/ and use ANSI Control Sequence Initiators: CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL

Re: [CMake] How not to copy a link

2012-01-11 Thread Michael Hertling
On 01/07/2012 03:52 PM, David Cole wrote: > On Sat, Jan 7, 2012 at 9:47 AM, David Cole wrote: >> On Fri, Jan 6, 2012 at 10:54 PM, Michael Hertling >> wrote: >>> On 01/06/2012 07:51 PM, Kevin Burge wrote: >>>> Thanks David. These are external libraries built

Re: [CMake] How not to copy a link

2012-01-12 Thread Michael Hertling
On 01/11/2012 04:52 PM, David Cole wrote: > On Wed, Jan 11, 2012 at 10:10 AM, Michael Hertling > wrote: >> On 01/07/2012 03:52 PM, David Cole wrote: >>> On Sat, Jan 7, 2012 at 9:47 AM, David Cole wrote: >>>> On Fri, Jan 6, 2012 at 10:54 PM, Michael Hertling &

Re: [CMake] MSBuild and automatic project file regenation

2012-01-13 Thread Michael Hertling
On 01/10/2012 07:09 PM, Óscar Fuentes wrote: > Michael Hertling > writes: > >> But aren't the issues related at least? > > Dunno. > >> If I understand >> correctly, "cmake --build" invokes MSBuild which >> >> - loads the so

Re: [CMake] Custom configuration types in Visual Studio

2012-01-13 Thread Michael Hertling
On 01/12/2012 10:23 PM, Robert Dailey wrote: > I see there is documentation for this but it doesn't have an implementation > for VS generators: > http://www.cmake.org/Bug/view.php?id=5811 > > Any status updates on this bug? I'd like to be able to create my own debug > configuration called DebugSta

Re: [CMake] MSBuild and automatic project file regenation

2012-01-13 Thread Michael Hertling
On 01/13/2012 03:42 PM, Bill Hoffman wrote: > On 1/13/2012 9:10 AM, Michael Hertling wrote: > >> With CMake 2.8.7 and VS 2008, I can report the following findings: >> >> (1) Starting out from within an empty build directory: "cmake .." >> followed b

Re: [CMake] Custom configuration types in Visual Studio

2012-01-13 Thread Michael Hertling
On 01/13/2012 05:06 PM, David Cole wrote: > On Fri, Jan 13, 2012 at 10:22 AM, Michael Hertling > wrote: >> On 01/12/2012 10:23 PM, Robert Dailey wrote: >>> I see there is documentation for this but it doesn't have an implementation >>> for VS generators: >&

Re: [CMake] shared library with CMake in kdevelop4

2012-01-16 Thread Michael Hertling
On 01/16/2012 02:38 PM, paspa...@noos.fr wrote: > > I am new with kdevelop and cmake so apologize for this pretty naive question, > I > create in kdevelop a proj3 project and want to link a library so I create a > second project projA within the proj3 directory > > the projA CMakelist is > >

Re: [CMake] shared library with CMake in kdevelop4

2012-01-16 Thread Michael Hertling
thanks again > pascal Regards, Michael PS: Please don't drop the ML. > Message d'origine > >De : "Michael Hertling" > >À : cmake@cmake.org > >Objet : Re: [CMake] shared library with CMake in kdevelop4 > >Date : 16/01/2012 15:39:29 CET >

Re: [CMake] execute a script before and after configuration

2012-01-20 Thread Michael Hertling
On 01/20/2012 01:57 PM, Dominik Szczerba wrote: > Hi, > > I am building a big software framework on a cray system whereby during > cmake "configuration" phase I need to unload certain system modules > (so that some small test programs are allowed to run without > scheduler) and afterwards, before

Re: [CMake] Compile multiple-sources at a time?

2012-01-20 Thread Michael Hertling
On 01/19/2012 11:09 PM, Oliver kfsone Smith wrote: > I realize not every build environment supports the option, but is there > a way to get CMake to generate Makefiles which aggregate source files, e.g. > > $ g++ -pipe -o library.a lib1.cpp lib2.cpp lib3.cpp > $ g++ -pipe -o exeutable file1.cpp f

Re: [CMake] Fwd: building libs and specifying addition folders

2012-01-20 Thread Michael Hertling
On 01/19/2012 08:15 AM, Dev Guy wrote: > On Thu, Jan 19, 2012 at 1:01 AM, John Drescher wrote: >> -- Forwarded message -- >> From: John Drescher >> Date: Thu, Jan 19, 2012 at 1:00 AM >> Subject: Re: [CMake] building libs and specifying addition folders >> To: Dev Guy >> >> >> On

Re: [CMake] Revision header

2012-01-23 Thread Michael Hertling
On 01/21/2012 10:51 PM, Oliver Smith wrote: > I have a script that generates a revision.h file, I've spent the morning > trying to figure out how to make it so that ... any time CMake rebuilds > any of the other targets, it starts by running the make-new-revision script. > > The idea is, I use t

Re: [CMake] execute a script before and after configuration

2012-01-25 Thread Michael Hertling
On 01/21/2012 11:28 AM, Dominik Szczerba wrote: > On Sat, Jan 21, 2012 at 10:50 AM, Dominik Szczerba > wrote: > You might use an EXECUTE_PROCESS() command at the beginning of your > CMakeLists.txt to unload the modules, and another EXECUTE_PROCESS() > at the end to reload them. >> >>

Re: [CMake] Custom configuration types in Visual Studio

2012-01-26 Thread Michael Hertling
ure request. Regards, Michael > On Fri, Jan 13, 2012 at 4:52 PM, Michael Hertling wrote: > >> On 01/13/2012 05:06 PM, David Cole wrote: >>> On Fri, Jan 13, 2012 at 10:22 AM, Michael Hertling >> wrote: >>>> On 01/12/2012 10:23 PM, Robert Dailey wrote: >

Re: [CMake] Adding a generated file as a dependency to a target

2012-01-27 Thread Michael Hertling
On 01/27/2012 06:41 PM, Schuchard, Matthew wrote: > Contrary to the CMake FAQ, but consistent with what I have been reading > elsewhere, it does not seem possible for me with CMake 2.8.6 to add a > generated file as a dependency to a target, even in the same directory. > > I have done something

Re: [CMake] Adding a generated file as a dependency to a target

2012-01-27 Thread Michael Hertling
On 01/27/2012 07:15 PM, Michael Hertling wrote: > On 01/27/2012 06:41 PM, Schuchard, Matthew wrote: >> Contrary to the CMake FAQ, but consistent with what I have been reading >> elsewhere, it does not seem possible for me with CMake 2.8.6 to add a >> generated file as a d

Re: [CMake] cmake can't find some crtbegin.so, libgcc, libgcc_s under certain conditions

2012-01-31 Thread Michael Hertling
On 01/31/2012 09:14 PM, Jim Galarowicz wrote: > > Hi all, > > I'm running into issues with cmake or likely our set-up/usage of cmake, when > trying to build the component based tool framework (CBTF) with cmake. > The issue I'm seeing only occurs on machines where binutils-devel is not > install

<    2   3   4   5   6   7   8   >