Re: [CMake] Restrictions on where a binary can be put?

2011-01-20 Thread Andreas Pakulat
On 21.01.11 01:37:41, Michael Hertling wrote: > So, what's your conclusion in this matter? Should the behavior in > question be considered as a bug or is it alright? IMO, such a subtle > side effect of a read operation on a subsequent write operation is at > least highly surprising. Besides, does o

Re: [CMake] CHECK_INCLUDE_FILES ignores CMAKE_FIND_ROOT_PATH, but should it?

2011-01-20 Thread Rolf Eike Beer
> 2011/1/20 Alexander Neundorf : >> check_include_files() is there to check whether header files in the >> compilers >> system include path exist, i.e. which are found without any -I switches. >> So, from that POV, the behaviour is ok. > > Aha, so software using check_include_files() to look for

Re: [CMake] How to make a ProjectConfig.cmake

2011-01-20 Thread Micha Renner
Am Donnerstag, den 20.01.2011, 15:36 -0500 schrieb Brad King: > On 01/20/2011 01:36 PM, Alexander Neundorf wrote: > > On Thursday 20 January 2011, Brad King wrote: > >> This all has been documented on the Wiki for years: > >> > >> http://www.cmake.org/Wiki/CMake_2.6_Notes > >> > >> It is more of

Re: [CMake] VS2010 tries to compile a file with *.res extension when its copied

2011-01-20 Thread David Cole
Is tha with 2.8.3 or 2.8.4-rc1? On Thursday, January 20, 2011, wrote: > I know I've asked this before, but now I've narrowed it down a bit and I > have an example. This copies a *.res file to the binary directory where > presumably the executable can find it. The executable has that file as a >

Re: [CMake] An issue with snow leopard?

2011-01-20 Thread M Stauffer (V)
Hi, I had the same problem as OP. To fix, delete CMakeCache.txt in the build dir, and run ccmake again. Phew! BTW, is there a way to reply directly to an archived post? I just copied the thread and subject into a new email msg, which is easy enough actually. Cheers, Michael

Re: [CMake] Restrictions on where a binary can be put?

2011-01-20 Thread Michael Hertling
On 01/20/2011 07:01 PM, Alexander Neundorf wrote: > On Sunday 09 January 2011, Michael Hertling wrote: >> On 01/09/2011 09:47 PM, Nizar Khalifa Sallem wrote: >>> At Sun, 09 Jan 2011 21:42:49 +0100, >>> >>> Michael Hertling wrote: On 01/09/2011 09:09 PM, Andreas Pakulat wrote: > On 09.01.11

Re: [CMake] CHECK_INCLUDE_FILES ignores CMAKE_FIND_ROOT_PATH, but should it?

2011-01-20 Thread Bjørn Forsman
Hi Alexander, Thanks for your reply. 2011/1/20 Alexander Neundorf : > On Monday 10 January 2011, Bjørn Forsman wrote: >> Hi all, >> >> I just found out that CHECK_INCLUDE_FILES ignores CMAKE_FIND_ROOT_PATH. The >> documentation for CHECK_INCLUDE_FILES says: >> >>   ... >>   The following variable

[CMake] VS2010 tries to compile a file with *.res extension when its copied

2011-01-20 Thread Aaron_Wright
I know I've asked this before, but now I've narrowed it down a bit and I have an example. This copies a *.res file to the binary directory where presumably the executable can find it. The executable has that file as a source file to hook up the dependency, and the copied file has the HEADER_FIL

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread Eric Noulard
2011/1/20 Rolf Eike Beer : >> When you have such different "levels" of option you may do something like: >> >> OPTION(DEVELOPER_OPT_ENABLE  "Enable developer options" OFF) >> OPTION(SYSTEM_INTEGRATOR_OPT_ENABLE  "Enable system integrator >> specific options" OFF) >> OPTION(TOOL_USERS_OPT_ENABLE  "E

Re: [CMake] continuous builds and CTEST_ELAPSED_TIME

2011-01-20 Thread Tyler Roscoe
On Thu, Jan 20, 2011 at 08:38:41PM +, Marco Craveiro wrote: > the bit i fail to understand is why is 36000 deemed as a good value > rather than ~86400? or is this because a lot of people have copied and > pasted from the wiki page? :-) Since the examples come from scripts Kitware uses in produ

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Michael Wild
On 20.01.2011, at 18:37, Alexander Neundorf wrote: > On Thursday 20 January 2011, Michael Wild wrote: >> On 01/20/2011 02:14 PM, David Cole wrote: > ... >>> Me too. I had to go searching for "CMAKE_MATCH_" because I knew it was >>> stated somewhere. Much to my surprise, there was only a singl

Re: [CMake] Any way to make/fake subdirectories depending on ExternalProject?

2011-01-20 Thread Alexander Neundorf
On Thursday 20 January 2011, Bill Hoffman wrote: > On 1/20/2011 3:19 PM, kent williams wrote: > > I kinda know the simple answer is 'no.' I hope there's a creative > > *couch*sneaky*cough* way to do this. > > > > I'm trying to build CableSwig as a external project as part of ITK. I > > have this

[CMake] continuous builds and CTEST_ELAPSED_TIME

2011-01-20 Thread Marco Craveiro
hello cmakers, i've been parsing some of the documentation/posts etc on continuous builds. it seems a pretty common pattern for people to settle on a while loop such as the one described in the official wiki (http://www.cmake.org/Wiki/CMake_Scripting_Of_CTest): while (${CTEST_ELAPSED_TIME} LESS 3

Re: [CMake] How to make a ProjectConfig.cmake

2011-01-20 Thread Brad King
On 01/20/2011 01:36 PM, Alexander Neundorf wrote: > On Thursday 20 January 2011, Brad King wrote: >> This all has been documented on the Wiki for years: >> >> http://www.cmake.org/Wiki/CMake_2.6_Notes >> >> It is more of a tutorial/reference format than an example/template though. > > Yes, it's

Re: [CMake] Any way to make/fake subdirectories depending on ExternalProject?

2011-01-20 Thread Bill Hoffman
On 1/20/2011 3:19 PM, kent williams wrote: I kinda know the simple answer is 'no.' I hope there's a creative *couch*sneaky*cough* way to do this. I'm trying to build CableSwig as a external project as part of ITK. I have this working for a single-process build. It works in that case because t

[CMake] Any way to make/fake subdirectories depending on ExternalProject?

2011-01-20 Thread kent williams
I kinda know the simple answer is 'no.' I hope there's a creative *couch*sneaky*cough* way to do this. I'm trying to build CableSwig as a external project as part of ITK. I have this working for a single-process build. It works in that case because the ExternalProject_add happens textually befo

Re: [CMake] cpack bundle on osx

2011-01-20 Thread Michael Jackson
There are a lot of different reasons it can fail. I usually end up debugging through the fixup_bundle() code and placing lots of "message(STATUS )" commands in order to try and follow what is going on. There are already some through out the cmake code you usually just have to set a cmake var

Re: [CMake] add_custom_target and Code Blocks generator

2011-01-20 Thread Alexander Neundorf
On Thursday 20 January 2011, Dimitri Kaparis wrote: > On Thu, Jan 20, 2011 at 7:27 PM, Alexander Neundorf > > wrote: > > On Thursday 20 January 2011, Dimitri Kaparis wrote: > >> Greetings, > >> > >> the Code Blocks generator is not adding to the project the sources, > >> specified in the command.

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread Rolf Eike Beer
> When you have such different "levels" of option you may do something like: > > OPTION(DEVELOPER_OPT_ENABLE "Enable developer options" OFF) > OPTION(SYSTEM_INTEGRATOR_OPT_ENABLE "Enable system integrator > specific options" OFF) > OPTION(TOOL_USERS_OPT_ENABLE "Enable tool users options" ON) > >

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Tyler Roscoe
On Thu, Jan 20, 2011 at 02:06:33PM +0100, Michael Wild wrote: > Ah, yes. I keep forgetting. Might I propose that the documentation about > regular expressions be extracted into its own section and then be > referenced from all commands that have a REGEX mode? Because, > confusingly, the only docume

Re: [CMake] cpack bundle on osx

2011-01-20 Thread Yngve Levinsen
Well I do have a folder structure, which looks like this: $ ls -R madx_dev.app/ Contents madx_dev.app//Contents: Info.plist MacOS Resources madx_dev.app//Contents/MacOS: madx_dev madx_dev.app//Contents/Resources: MadX.icns But it does not seem that the fixup-command does anything for me wi

Re: [CMake] add_custom_target and Code Blocks generator

2011-01-20 Thread Dimitri Kaparis
On Thu, Jan 20, 2011 at 7:27 PM, Alexander Neundorf wrote: > On Thursday 20 January 2011, Dimitri Kaparis wrote: >> Greetings, >> >> the Code Blocks generator is not adding to the project the sources, >> specified in the command. >> In order to add a group of header files to my project tree, I'm t

Re: [CMake] How to make a ProjectConfig.cmake

2011-01-20 Thread Alexander Neundorf
On Thursday 20 January 2011, Brad King wrote: > On 01/20/2011 12:22 PM, Alexander Neundorf wrote: > > On Thursday 20 January 2011, Michael Wild wrote: > >> On 01/19/2011 07:24 PM, Alexander Neundorf wrote: > >>> Wow, good summary. > >>> > >>> Can you please put that in a wiki page on > >>> http://w

Re: [CMake] Specify as in the toolchain

2011-01-20 Thread Alexander Neundorf
On Friday 03 December 2010, Andrea Galeazzi wrote: > Il 03/12/2010 13.15, Michael Wild ha scritto: > > On 12/03/2010 01:06 PM, Andrea Galeazzi wrote: > >> How can I specify the "as" command like I do for gcc or g++ compiler in > >> a toolchain? > >> SET(CMAKE_C_COMPILER "C:/Programmi/development/

Re: [CMake] How to make a ProjectConfig.cmake

2011-01-20 Thread Brad King
On 01/20/2011 12:22 PM, Alexander Neundorf wrote: > On Thursday 20 January 2011, Michael Wild wrote: >> On 01/19/2011 07:24 PM, Alexander Neundorf wrote: >>> Wow, good summary. >>> >>> Can you please put that in a wiki page on http://www.cmake.org/Wiki/CMake? >> >> http://www.cmake.org/Wiki/CMake:H

Re: [CMake] Cross-compiling, CMAKE_C_FLAGS, and configure-time compiler tests

2011-01-20 Thread Alexander Neundorf
Hi Justin, On Tuesday 14 December 2010, Justin Holewinski wrote: > On Tue, Dec 14, 2010 at 4:45 AM, Johan Björk wrote: > > Hi Justin, > > > > I'm very unsure if this is the correct solution, but it worked for me. I > > haven't been able to find any good documentation stating how the > > CMakeCach

Re: [CMake] Cross-compiling a static library (CMake 2.8.3)

2011-01-20 Thread Alexander Neundorf
On Monday 10 January 2011, Emmanuel Blot wrote: > >> INCLUDE (CMakeForceCompiler) > >> CMAKE_FORCE_C_COMPILER (arm-eabi-gcc-4.5.2 GNU 4) > > > > I haven't used that one before. > > FWIW: I found why I use CMAKE_FORCE_C_COMPILER rather than the simpler > CMAKE_C_COMPILER command: > I build projects

Re: [CMake] Should CMake use /etc/ld.so.conf.d for find_library's CMAKE_SYSTEM_LIBRARY_PATH?

2011-01-20 Thread James Bigler
On Thu, Jan 20, 2011 at 10:47 AM, Rolf Eike Beer wrote: > > On Thursday 20 January 2011, James Bigler wrote: > > > I'm noticing that on some systems they package the NVIDIA driver into > > > different directories than the driver is typically installed. In > > > order to make stuff link properly

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread David Cole
On Thu, Jan 20, 2011 at 12:37 PM, Alexander Neundorf wrote: > On Thursday 20 January 2011, Michael Wild wrote: >> On 01/20/2011 02:14 PM, David Cole wrote: > ... >> > Me too. I had to go searching for "CMAKE_MATCH_" because I knew it was >> > stated somewhere. Much to my surprise, there was only a

Re: [CMake] CHECK_INCLUDE_FILES ignores CMAKE_FIND_ROOT_PATH, but should it?

2011-01-20 Thread Alexander Neundorf
On Monday 10 January 2011, Bjørn Forsman wrote: > Hi all, > > I just found out that CHECK_INCLUDE_FILES ignores CMAKE_FIND_ROOT_PATH. The > documentation for CHECK_INCLUDE_FILES says: > > ... > The following variables may be set before calling this macro to > modify the way the check is run:

Re: [CMake] Restrictions on where a binary can be put?

2011-01-20 Thread Alexander Neundorf
On Sunday 09 January 2011, Michael Hertling wrote: > On 01/09/2011 09:47 PM, Nizar Khalifa Sallem wrote: > > At Sun, 09 Jan 2011 21:42:49 +0100, > > > > Michael Hertling wrote: > >> On 01/09/2011 09:09 PM, Andreas Pakulat wrote: > >>> On 09.01.11 21:05:21, Andreas Pakulat wrote: > On 09.01.11

Re: [CMake] Should CMake use /etc/ld.so.conf.d for find_library's CMAKE_SYSTEM_LIBRARY_PATH?

2011-01-20 Thread Rolf Eike Beer
> On Thursday 20 January 2011, James Bigler wrote: > > I'm noticing that on some systems they package the NVIDIA driver into > > different directories than the driver is typically installed.  In > > order to make stuff link properly at run time these non-standard > > locations are added to /etc/ld

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Alexander Neundorf
On Thursday 20 January 2011, Michael Wild wrote: > On 01/20/2011 02:14 PM, David Cole wrote: ... > > Me too. I had to go searching for "CMAKE_MATCH_" because I knew it was > > stated somewhere. Much to my surprise, there was only a single > > "CMAKE_MATCH" on our whole documentation page. It would

Re: [CMake] add_custom_target and Code Blocks generator

2011-01-20 Thread Alexander Neundorf
On Thursday 20 January 2011, Dimitri Kaparis wrote: > Greetings, > > the Code Blocks generator is not adding to the project the sources, > specified in the command. > In order to add a group of header files to my project tree, I'm trying > to implement the solution posted here: > http://www.cmake.o

Re: [CMake] Should CMake use /etc/ld.so.conf.d for find_library's CMAKE_SYSTEM_LIBRARY_PATH?

2011-01-20 Thread Alexander Neundorf
On Thursday 20 January 2011, James Bigler wrote: > I'm noticing that on some systems they package the NVIDIA driver into > different directories than the driver is typically installed. In order to > make stuff link properly at run time these non-standard locations are added > to /etc/ld.so.conf.d.

Re: [CMake] How to make a ProjectConfig.cmake

2011-01-20 Thread Alexander Neundorf
On Thursday 20 January 2011, Michael Wild wrote: > On 01/19/2011 07:24 PM, Alexander Neundorf wrote: > > On Thursday 30 December 2010, Michael Wild wrote: > >> On 12/30/2010 11:33 AM, Ian Monroe wrote: > >>> To create my QyotoConfig.cmake I need to know the full path of a > >>> library so that I ca

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread Eric Noulard
2011/1/20 SF Markus Elfring : >> Probably that would be pretty difficult to achieve and definitely would >> break backwards-compatibility beyond resurrection. > > I have got a different opinion. I imagine that a property with a new name > can provide the desired service to retrieve target parameter

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread Michael Wild
On 01/20/2011 04:30 PM, SF Markus Elfring wrote: >> Probably that would be pretty difficult to achieve and definitely would >> break backwards-compatibility beyond resurrection. > > I have got a different opinion. I imagine that a property with a new > name can provide the desired service to retri

Re: [CMake] How to make a ProjectConfig.cmake

2011-01-20 Thread Michael Wild
On 01/19/2011 07:24 PM, Alexander Neundorf wrote: > On Thursday 30 December 2010, Michael Wild wrote: >> On 12/30/2010 11:33 AM, Ian Monroe wrote: >>> To create my QyotoConfig.cmake I need to know the full path of a >>> library so that I can set a variable like QYOTO_LIBRARY. >>> >>> This is pretty

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread SF Markus Elfring
Probably that would be pretty difficult to achieve and definitely would break backwards-compatibility beyond resurrection. I have got a different opinion. I imagine that a property with a new name can provide the desired service to retrieve target parameters in a portable way from the build en

Re: [CMake] cpack bundle on osx

2011-01-20 Thread Michael Jackson
If you are creating a command line program then the included fixup_bundle will not work since it looks for a ".app" folder structure to fix. Instead you probably want to pass in the path to the executable located in ${CMAKE_INSTALL_PREFIX}/bin/MyExecutable to BundleUtilities. Any library locat

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread David Cole
On Thu, Jan 20, 2011 at 8:06 AM, Michael Wild wrote: > On 01/20/2011 02:01 PM, David Cole wrote: > > On Thu, Jan 20, 2011 at 7:39 AM, Michael Wild wrote: > > > >> On 01/20/2011 12:10 PM, SF Markus Elfring wrote: > Thanks for your help to make CMake better, > >>> > >>> Is the command variant

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Michael Wild
On 01/20/2011 02:14 PM, David Cole wrote: > On Thu, Jan 20, 2011 at 8:06 AM, Michael Wild wrote: > >> On 01/20/2011 02:01 PM, David Cole wrote: >>> On Thu, Jan 20, 2011 at 7:39 AM, Michael Wild wrote: >>> On 01/20/2011 12:10 PM, SF Markus Elfring wrote: >> Thanks for your help to make C

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Michael Wild
On 01/20/2011 02:01 PM, David Cole wrote: > On Thu, Jan 20, 2011 at 7:39 AM, Michael Wild wrote: > >> On 01/20/2011 12:10 PM, SF Markus Elfring wrote: Thanks for your help to make CMake better, >>> >>> Is the command variant "string(REGEX REPLACE ...)" completely documented? >>> >>> Can mult

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread David Cole
On Thu, Jan 20, 2011 at 7:39 AM, Michael Wild wrote: > On 01/20/2011 12:10 PM, SF Markus Elfring wrote: > >> Thanks for your help to make CMake better, > > > > Is the command variant "string(REGEX REPLACE ...)" completely documented? > > > > Can multiple variables be specified that will receive t

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread Michael Wild
On 01/20/2011 01:30 PM, SF Markus Elfring wrote: >> get_directory_property(info COMPILE_DEFINITIONS) > > How do you think about an extension for this programming interface? > > Would you like to support that target parameters like preprocessor > symbols are queried from the build environment even

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Michael Wild
On 01/20/2011 12:10 PM, SF Markus Elfring wrote: >> Thanks for your help to make CMake better, > > Is the command variant "string(REGEX REPLACE ...)" completely documented? > > Can multiple variables be specified that will receive the data from the > evaluation of subexpressions in the passed reg

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread SF Markus Elfring
get_directory_property(info COMPILE_DEFINITIONS) How do you think about an extension for this programming interface? Would you like to support that target parameters like preprocessor symbols are queried from the build environment even if they were not set by the CMake command "add_definition

Re: [CMake] cpack bundle on osx

2011-01-20 Thread Yngve Inntjore Levinsen
Thank you for your kind reply Michael, it got me some bit further and I think I understand a bit more. I could not see any examples of the usage of the BundleUtilities in CMake, but the example given in the Wiki works as expected on my machine. I forgot to add some significant parts of my CMak

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread SF Markus Elfring
Thanks for your help to make CMake better, Is the command variant "string(REGEX REPLACE ...)" completely documented? Can multiple variables be specified that will receive the data from the evaluation of subexpressions in the passed regular expression? Regards, Markus

Re: [CMake] Support for subexpressions in regular expressions?

2011-01-20 Thread SF Markus Elfring
Thanks for your help to make CMake better, How many CMake commands can work with subexpressions in regular expressions? Are any extensions needed in this application area? Regards, Markus ___ Powered by www.kitware.com Visit other Kitware open-sourc

[CMake] pb with cmake and intel fortran 11.1

2011-01-20 Thread ycollette . nospam
Hello, I meet some problems to run cmake with intel fortran 11.1 + visual 2008 under windows XP 64 bits. I can compile a fortran project under visual, but cmake is not able to detect ifort (I run cmake from the visual dos console). The log of a cmake run is joined to this mail. I wanted to open