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.

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 to find a way

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 warning

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 mhertl...@online.de: 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

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

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

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 will write a DT_NEEDED tag to the resulting

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 --build is just a

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

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 st...@sumost.ca wrote: Hi, To build VTK on our windows build server, I wrote a small batch script that invokes cmake --build. My

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

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 my

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 that

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 source

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 mhertl...@online.dewrote: Just some spontaneous questions/remarks: Thanks; I really appreciate it! - Why do you use macros instead of functions? I use macros so the _array2d_ variables

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, and then my program that uses DCMTK

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 have

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 to

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

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

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

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 dll. In

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

2011-12-13 Thread Michael Hertling
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 mhertl...@online.de 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

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

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 path/to/input.txt $TARGET_FILE_DIR:OneOfYourExecutables)

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 rcdai...@gmail.com 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

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

2011-12-14 Thread Michael Hertling
correctly, although you'd prefer to have just one. BTW, is this really bad? Regards, Michael PS: Please don't drop the ML. I am used to mailing lists having the reply-to set, will try to keep it in mind. 2011/12/13 Michael Hertling mhertl...@online.de On 12/12/2011 11:40 AM, Alexander

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

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

2011-12-14 Thread Michael Hertling
the former changes? AFAICS, that's not the case, so the manifest should not be considered as one of the library's prerequisites. Regards, Michael 2011/12/13 Michael Hertling mhertl...@online.de On 12/12/2011 11:40 AM, Alexander Broekhuis wrote: Hi, Can anyone help me with this? I haven't

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 the

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 will

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

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 rcdai...@gmail.com 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

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 mhertl...@online.dewrote: 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 in the next call

Re: [CMake] 2D arrays

2011-12-16 Thread Michael Hertling
On Thu, Dec 1, 2011 at 11:04 AM, Robert Dailey rcdai...@gmail.com wrote: On Wed, Nov 30, 2011 at 7:18 PM, Michael Hertling mhertl...@online.dewrote: 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] [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 EXECUTE_PROCESS

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
() 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 Hertling a écrit : On 10/25/2011

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 point to the

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 goelvivek2...@gmail.com 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

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

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

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

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 o...@wanadoo.es 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

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 debug

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 mhertl...@online.de 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 step before calling out to MSBuild. You can

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 21 into sed/awk/perl/your-favorite-here and use ANSI Control Sequence Initiators:

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 david.c...@kitware.com wrote: On Fri, Jan 6, 2012 at 10:54 PM, Michael Hertling mhertl...@online.de wrote: On 01/06/2012 07:51 PM, Kevin Burge wrote: Thanks David. These are external libraries built outside

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 mhertl...@online.de wrote: On 01/07/2012 03:52 PM, David Cole wrote: On Sat, Jan 7, 2012 at 9:47 AM, David Cole david.c...@kitware.com wrote: On Fri, Jan 6, 2012 at 10:54 PM, Michael Hertling mhertl

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 mhertl...@online.de writes: But aren't the issues related at least? Dunno. If I understand correctly, cmake --build invokes MSBuild which - loads the solution file and the project files, - reinvokes CMake via

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 DebugStatic

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 by cmake --build . configures/builds as expected. (2

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 mhertl...@online.de 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: http://www.cmake.org/Bug

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
De : Michael Hertling mhertl...@online.de À : cmake@cmake.org Objet : Re: [CMake] shared library with CMake in kdevelop4 Date : 16/01/2012 15:39:29 CET 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

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 the

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

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 dresche...@gmail.com wrote: -- Forwarded message -- From: John Drescher dresche...@gmail.com Date: Thu, Jan 19, 2012 at 1:00 AM Subject: Re: [CMake] building libs and specifying addition

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 the

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 domi...@itis.ethz.ch 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
, 2012 at 4:52 PM, Michael Hertling mhertl...@online.dewrote: On 01/13/2012 05:06 PM, David Cole wrote: On Fri, Jan 13, 2012 at 10:22 AM, Michael Hertling mhertl...@online.de wrote: On 01/12/2012 10:23 PM, Robert Dailey wrote: I see there is documentation for this but it doesn't have

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

Re: [CMake] runtime dependencies for tests

2012-01-31 Thread Michael Hertling
On 01/31/2012 02:43 PM, Massaro Alessio wrote: Hi There I googled near and far, but could not find a way to tell CTest where to find the 3rd-party DLLs required to run the test executables. In particular my executable targets link with a few Boost DLLs/SOs and obviously require them to

Re: [CMake] Making a variable a dependency...

2012-02-06 Thread Michael Hertling
On 02/06/2012 10:56 PM, Alexander Neundorf wrote: On Saturday 04 February 2012, Oliver Smith wrote: My CMakeLists uses the Subversion repository information in a couple of places (it configures a file revision.h and it uses it for the CPack package name). The problem is that this variable is

Re: [CMake] How to use CMake with icc via configuration options when needing interprocedural optimization?

2012-02-09 Thread Michael Hertling
On 02/07/2012 02:43 PM, janitor 048 wrote: Hello, this is a question I recently asked on stackoverflow ( http://stackoverflow.com/questions/9129233/recommended-ways-to-use-cmake-with-icc-via-configuration-options) but that has not received any response since then. Maybe this mailing list is

Re: [CMake] Making a variable a dependency...

2012-02-09 Thread Michael Hertling
On 02/08/2012 11:13 PM, Oliver kfsone Smith wrote: Michael Hertling said the following on 2/6/2012 6:39 PM: On 02/06/2012 10:56 PM, Alexander Neundorf wrote: On Saturday 04 February 2012, Oliver Smith wrote: My CMakeLists uses the Subversion repository information in a couple of places

Re: [CMake] MSBuild and automatic project file regenation

2012-02-09 Thread Michael Hertling
On 01/13/2012 08:02 PM, Michael Hertling wrote: 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 by cmake

Re: [CMake] Copying Files into build-dir under Visual Studio vs. Codeblocks/Win32 vs. Codeblocks/Linux

2012-02-10 Thread Michael Hertling
On 02/10/2012 09:41 AM, Eric Noulard wrote: 2012/2/10 Stefan Fendt ste...@sfendt.de: Hi, I'm (still) quite unsure if this isn't an FAQ (or if not maybe should be one), but I have read through everything I could google-up regarding this topic and found nothing usable... I'm writing an

Re: [CMake] PARENT_SCOPE for unset()?

2012-02-10 Thread Michael Hertling
On 02/10/2012 03:59 PM, Robert Dailey wrote: I actually found that using the following worked the exact same for me: set( var PARENT_SCOPE ) It passed the NOT test in my if condition: if( NOT var ) ... endif() Does it pass the NOT DEFINED test, too? There's a difference between an

Re: [CMake] ansi color

2012-02-10 Thread Michael Hertling
On 02/10/2012 09:15 AM, Matt Fair wrote: I'd like to be able to pipe cmake output and still have the ansi color codes when the output is not TTY, is there a way to do this? Thanks, Matt You might do this by yourself using sed/awk/perl/... and the ANSI CSIs; refer to [1] for a similar example.

Re: [CMake] External project source

2012-02-13 Thread Michael Hertling
On 02/13/2012 09:02 AM, Nicholas Yue wrote: On 13/02/12 6:47 PM, Eric Noulard wrote: 2012/2/13 Nicholas Yueyue.nicho...@gmail.com: Hi, There is an existing project I have access to that already have CMake configuration file but the way it is written requires alot of preprocessing steps

Re: [CMake] How to have a static/shared option in a Find script ?

2012-02-15 Thread Michael Hertling
On 02/15/2012 03:48 PM, Barth wrote: Hello, I am trying to write a Find script for a library called DIM. It is something basic but I have a problem with caching. I have an option to force choosing the static library over the shared one : Then, I decide what is the name of the library to

Re: [CMake] How to have a static/shared option in a Find script ?

2012-02-16 Thread Michael Hertling
On 02/16/2012 03:14 PM, Barth wrote: Hi again, I have understood what you meant :) Hhm, actually, I talked nonsense w.r.t. DIM_USE_STATIC. ;) For records here is what I did : # (1) Use FIND_LIBRARY() to look for the shared and the static library # and define DIM_SHARED_LIBRARY and

Re: [CMake] find both shared and static versions?

2012-02-17 Thread Michael Hertling
On 02/17/2012 01:36 AM, Dougal Sutherland wrote: I have an application where I want to link some targets against shared versions of Boost and some against static versions. (I'd prefer shared in general, but I need to link against the static version of boost for my matlab mex interface, to

Re: [CMake] delayed target

2012-02-22 Thread Michael Hertling
On 02/22/2012 05:02 PM, Andrea Crotti wrote: Again I'm having some troubles with the different building stages: I would like to have a target that simply unzips all the files contained in a directory, which can be found with a simple globbing. add_custom_target(unzip_all_eggs

Re: [CMake] passing arguments to the final make

2012-02-22 Thread Michael Hertling
On 02/22/2012 04:43 PM, Andrea Crotti wrote: I would like to be able to pass arguments to my generated Makefile. Suppose I use an environment variable like this: add_custom_target(run_dev_script COMMAND ${PYTHON_EXECUTABLE} ${PREREQUISITE} COMMAND ${PYTHON_EXECUTABLE} ${SCRIPT}

Re: [CMake] passing arguments to the final make

2012-02-22 Thread Michael Hertling
On 02/22/2012 06:32 PM, Andrea Crotti wrote: On 02/22/2012 05:25 PM, Michael Hertling wrote: On 02/22/2012 04:43 PM, Andrea Crotti wrote: I would like to be able to pass arguments to my generated Makefile. Suppose I use an environment variable like this: add_custom_target(run_dev_script

Re: [CMake] delayed target

2012-02-22 Thread Michael Hertling
On 02/22/2012 07:21 PM, Andrea Crotti wrote: On 02/22/2012 05:14 PM, Michael Hertling wrote: On 02/22/2012 05:02 PM, Andrea Crotti wrote: Again I'm having some troubles with the different building stages: I would like to have a target that simply unzips all the files contained in a directory

Re: [CMake] Shared intermediary files

2012-02-22 Thread Michael Hertling
On 02/20/2012 10:07 PM, Kevin Schmidt wrote: Hello, I'm in the process of converting over a large, monolithic tree with many libraries from a custom build solution over to cmake. So far, we've loved it. I am wondering about others' solutions to a problem we have encountered. We have

Re: [CMake] delayed target

2012-02-22 Thread Michael Hertling
On 02/22/2012 11:55 PM, Andrea Crotti wrote: On 02/22/2012 09:37 PM, Michael Hertling wrote: In order to define one target per egg, you'd need to know the eggs at configuration time since you cannot define targets at build time. So, gathering the eggs with a custom target/command

Re: [CMake] passing arguments to the final make

2012-02-22 Thread Michael Hertling
On 02/23/2012 12:04 AM, John Drescher wrote: And another thing, is it actually \${SCRIPT} a portable solution that works on all the generators? This is not about generators but about what shell you are running cmake from. For example that would not work on windows since the command prompt

Re: [CMake] Code and API review request for Qt5 CMake files

2012-02-24 Thread Michael Hertling
On 02/24/2012 03:34 PM, Stephen Kelly wrote: Just forwarding to the cmake users list. Stephen Kelly wrote: Hi there, Qt5 generates its own CMake files, which you will be able to use to find Qt5 and build with it. That is, you will port from, eg find_package(Qt4 REQUIRED Core

Re: [CMake] add_executable and extension of source file

2012-02-24 Thread Michael Hertling
On 02/24/2012 06:16 PM, Kris Thielemans wrote: Hi I have a project where I have C++ and C source files. I'm adding executables for this (via macros) like this foreach(executable ${SOURCES}) add_executable(${executable} ${executable} ) target_link_libraries(${executable}

Re: [CMake] How to recursively copy directories and subdirectories...

2012-02-24 Thread Michael Hertling
On 02/25/2012 03:16 AM, Sumit Kumar wrote: Hello I would like to recursively copy folders/subfolders when I do a make install. In addition, I would like to copy certain file patterns (typically *.h) files that may be in these folders. I can do this for individual files (by doing a glob

Re: [CMake] Code and API review request for Qt5 CMake files

2012-02-25 Thread Michael Hertling
On 02/25/2012 09:43 AM, Alexander Neundorf wrote: On Friday 24 February 2012, Michael Hertling wrote: On 02/24/2012 03:34 PM, Stephen Kelly wrote: ... [...] (that is, find_package(Qt5 REQUIRED Gui Xml) might not find QtXml, but Qt5_FOUND would still be true if the Qt5Config file is found

Re: [CMake] Code and API review request for Qt5 CMake files

2012-02-27 Thread Michael Hertling
On 02/26/2012 11:24 AM, Alexander Neundorf wrote: On Sunday 26 February 2012, Michael Hertling wrote: On 02/25/2012 09:43 AM, Alexander Neundorf wrote: On Friday 24 February 2012, Michael Hertling wrote: On 02/24/2012 03:34 PM, Stephen Kelly wrote: ... [...] (that is, find_package(Qt5

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

<    1   2   3   4   5   6   7   8   >