Re: [CMake] Question about dependencies

2011-02-09 Thread Michael Wild
Apart from the typos already pointed out by Martin, what is the define_custom_target() command? Did you mean add_custom_command() or add_custom_target()? If so, the syntax is completely wrong. If you meant add_dependencies(), then that is also wrong, because add_dependencies only operates on

Re: [CMake] CTest: Getting the PriorRevision with ctest_update?

2011-02-09 Thread David Cole
Not directly. But if you analyze Update.xml after a ctest_update call, you can parse it out... On Wed, Feb 9, 2011 at 7:13 AM, Johan Björk p...@spotify.com wrote: Hi everyone, Does ctest expose a way to get the old (and new I guess) revision of a source tree? /Johan

[CMake] FindMKL.cmake

2011-02-09 Thread Robert Bielik
Hi all, I'm trying to make a FindMKL.cmake file (for Intel MKL) to handle Windows and Mac OS X primarily. However, I thought that CMake would find my FindMKL.cmake file if being in the same directory as the calling CMakeLists.txt file ? Can I make CMake find the file without having to resort

Re: [CMake] FindMKL.cmake

2011-02-09 Thread Michael Wild
On 02/09/2011 01:50 PM, Robert Bielik wrote: Hi all, I'm trying to make a FindMKL.cmake file (for Intel MKL) to handle Windows and Mac OS X primarily. However, I thought that CMake would find my FindMKL.cmake file if being in the same directory as the calling CMakeLists.txt file ? Can I

Re: [CMake] FindMKL.cmake

2011-02-09 Thread Robert Bielik
Michael Wild skrev 2011-02-09 14:07: that's what the CMAKE_MODULE_PATH variable is for. And there is a FindLAPACK.cmake should already find Intel MKL, however IMHO the whole module is rather broken... Thnx Michael, I found that seconds after pressing the send button :) Thanks for pointing to

Re: [CMake] FindMKL.cmake

2011-02-09 Thread David Cole
On Wed, Feb 9, 2011 at 8:20 AM, Robert Bielik robert.bie...@xponaut.sewrote: Michael Wild skrev 2011-02-09 14:07: that's what the CMAKE_MODULE_PATH variable is for. And there is a FindLAPACK.cmake should already find Intel MKL, however IMHO the whole module is rather broken... Thnx

Re: [CMake] add_subdirectory and eclipse project

2011-02-09 Thread Andrea Galeazzi
Il 08/02/2011 17.58, Alexander Neundorf ha scritto: On Tuesday 08 February 2011, Andrea Galeazzi wrote: Il 18/01/2011 19.17, Alexander Neundorf ha scritto: On Tuesday 18 January 2011, Andrea Galeazzi wrote: ... I just read that wiki page but what I didn't find is how can I see

Re: [CMake] FindMKL.cmake

2011-02-09 Thread Robert Bielik
David Cole skrev 2011-02-09 14:31: Is there some way I can make file(GLOB_RECURSE... ) start at a directory of my choice (instead of the current CMakeLists.txt folder) ? file(GLOB_RECURSE ${dir}/*) Yes, and that will return file names. Would be nice to have a directive

[CMake] Help on ExternalProject_Add

2011-02-09 Thread Luigi Calori
Hi everybody, I' m trying to use ExternalProject to wrap serveral building recipies for different packages I have to use: I am taking the habit of using it as a replacement of shell scripts or manual session for building from source. In my usage I found some problems, possibly due to my

[CMake] fixup_bundle

2011-02-09 Thread Tim Blechmann
hi all, i am currently trying to adapt a cmake build system to build an osx app. the specific code is: INSTALL(CODE include(BundleUtilities) fixup_bundle(\${CMAKE_CURRENT_BINARY_DIR}/${myappbundlename}.app\ \\ \${CMAKE_CURRENT_BINARY_DIR}\) COMPONENT Runtime) however it doesn't

[CMake] CMake internal cache deletion seems to nullify command-line cache var settings

2011-02-09 Thread Wheeler, Frederick W (GE Global Research)
I think I found a CMake bug where cache variables set on the command-line (CMAKE_INSTALL_PREFIX:PATH) are not set as expected when the cache is deleted by cmake because a variable like CMAKE_C_COMPILER:FILEPATH is set. I've reduced this down as much as I could. I'm demonstrating the bug using

Re: [CMake] Question about dependencies

2011-02-09 Thread Carminati Federico
Hello Micheal *, sorry for the messed up posting, please forget it. Thanks to a bad connection I ended up posting a draft, I should have been more careful I realise I need some more work to submit a meaningful question to the list. Best, Federico Carminati CERN-PH 1211 Geneva 23

Re: [CMake] How to specify $1 for compiler?

2011-02-09 Thread Michael Hertling
On 02/08/2011 08:12 PM, Jed Brown wrote: On Mon, Feb 7, 2011 at 23:35, Jed Brown j...@59a2.org wrote: On Fri, Feb 4, 2011 at 01:31, Michael Hertling mhertl...@online.dewrote: With a Makefile generator, you might use a RULE_LAUNCH_COMPILE property: SET_TARGET_PROPERTIES(target PROPERTIES

Re: [CMake] FindMKL.cmake

2011-02-09 Thread David Cole
On Wed, Feb 9, 2011 at 9:15 AM, Robert Bielik robert.bie...@xponaut.sewrote: David Cole skrev 2011-02-09 14:31: Is there some way I can make file(GLOB_RECURSE... ) start at a directory of my choice (instead of the current CMakeLists.txt folder) ? file(GLOB_RECURSE ${dir}/*)

Re: [CMake] FindMKL.cmake

2011-02-09 Thread Robert Bielik
David Cole skrev 2011-02-09 16:32: You can iterate the returned list something like this to accumulate just directory names: set(dirs ) foreach(f ${glob_results}) if(IS_DIRECTORY ${f}) set(dirs ${dirs} ${f}) endif() endforeach() Yes, not bad. Good idea, thnx. /Rob

Re: [CMake] FindMKL.cmake

2011-02-09 Thread Robert Bielik
David Cole skrev 2011-02-09 16:32: You can iterate the returned list something like this to accumulate just directory names: set(dirs ) foreach(f ${glob_results}) if(IS_DIRECTORY ${f}) set(dirs ${dirs} ${f}) endif() endforeach() Hmm... doesn't work. find(...) doesn't return

Re: [CMake] FindMKL.cmake

2011-02-09 Thread David Cole
What does this return if you save it as glob.cmake and then run cmake -P glob.cmake ?? file(GLOB results /*) set(dirs ) foreach(f ${results}) if(IS_DIRECTORY ${f}) set(dirs ${dirs} ${f}) message(directory: '${f}') else() message(file: '${f}') endif() endforeach()

Re: [CMake] FindMKL.cmake

2011-02-09 Thread Michael Wild
On 02/09/2011 04:41 PM, Robert Bielik wrote: David Cole skrev 2011-02-09 16:32: You can iterate the returned list something like this to accumulate just directory names: set(dirs ) foreach(f ${glob_results}) if(IS_DIRECTORY ${f}) set(dirs ${dirs} ${f}) endif() endforeach()

Re: [CMake] FindMKL.cmake

2011-02-09 Thread David Cole
Ah I know what it is. If you use GLOB_RECURSE you only get files because the directories are recursed into. You have to use GLOB alone and do the recursion manually if you want to descend into found directories... Painful. But still possible. On Wed, Feb 9, 2011 at 10:48 AM, David Cole

[CMake] feed parsed information from source files into compile process

2011-02-09 Thread Verweij, Arjen
Hi, I'm looking for a way to parse information from source files and feed the outcome as input to the build process. In more detail, I have Fortran files that contain information about what optimization flags should be fed to the compiler. Currently there is a python script that does

Re: [CMake] FindMKL.cmake

2011-02-09 Thread Robert Bielik
David Cole skrev 2011-02-09 16:49: Ah I know what it is. If you use GLOB_RECURSE you only get files because the directories are recursed into. You have to use GLOB alone and do the recursion manually if you want to descend into found directories... Painful. But still possible. Something

Re: [CMake] feed parsed information from source files into compile process

2011-02-09 Thread Tyler Roscoe
On Wed, Feb 09, 2011 at 05:24:28PM +0100, Verweij, Arjen wrote: Currently there is a python script that does preprocessing of all source, stores information in override.cmake files using set_source_file_properties(). This works fine, but makes maintaining source more error prone than it was.

[CMake] Accessing visual studio debugger options

2011-02-09 Thread Louis Hoefler
Hello everyone, i created cmake files for a visual studio solution. The solution compiles, and now I want to start debugging the testapplication. I want to change the command line option, which is used by the debugger, to invoke the application. How can this be done? I use cmake 2.8.3 and

Re: [CMake] Accessing visual studio debugger options

2011-02-09 Thread Rolf Eike Beer
Hello everyone, i created cmake files for a visual studio solution. The solution compiles, and now I want to start debugging the testapplication. I want to change the command line option, which is used by the debugger, to invoke the application. How can this be done? I use cmake 2.8.3

Re: [CMake] Accessing visual studio debugger options

2011-02-09 Thread Louis Hoefler
Oh sorry if I was not completely clear. I wanted to access these settings throught cmake. Greetings Louis Am 09.02.2011 19:59, schrieb Rolf Eike Beer: Hello everyone, i created cmake files for a visual studio solution. The solution compiles, and now I want to start debugging the

Re: [CMake] Accessing visual studio debugger options

2011-02-09 Thread Robert Bielik
Louis Hoefler skrev 2011-02-09 19:41: Hello everyone, i created cmake files for a visual studio solution. The solution compiles, and now I want to start debugging the testapplication. I want to change the command line option, which is used by the debugger, to invoke the application. How can

Re: [CMake] Accessing visual studio debugger options

2011-02-09 Thread Rolf Eike Beer
Oh sorry if I was not completely clear. I wanted to access these settings throught cmake. You're lost (i.e. there is no way currently to do this). Eike ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Accessing visual studio debugger options

2011-02-09 Thread John Drescher
On Wed, Feb 9, 2011 at 2:30 PM, Robert Bielik robert.bie...@xponaut.se wrote: Louis Hoefler skrev 2011-02-09 19:41: Hello everyone, i created cmake files for a visual studio solution. The solution compiles, and now I want to start debugging the testapplication. I want to change the command

Re: [CMake] CMake Error: Error required internal CMake variable not set

2011-02-09 Thread Alexander Neundorf
On Wednesday 09 February 2011, Enrique Izaguirre wrote: Thanks a lot, I removed the CXX from the Project() and now both compilers are recognized and the problem was solved. Really appreciate your help You're welcome :-) Nice that it's working now for you Alex P.S. please keep replys on

Re: [CMake] Accessing visual studio debugger options

2011-02-09 Thread Ryan Pavlik
This is what my CreateLaunchers.cmake script does - https://github.com/rpavlik/cmake-modules https://github.com/rpavlik/cmake-modulesLets you do this: create_default_target_launcher(yourapp ARGS ${COMMAND_LINE_ARGS} RUNTIME_LIBRARY_DIRS ${RUNTIME_LIBRARY_DIRS} WORKING_DIRECTORY

Re: [CMake] Help on ExternalProject_Add

2011-02-09 Thread Jean-Christophe Fillion-Robin
Hi Luigi, You will find some comments below ... Jc On Wed, Feb 9, 2011 at 9:07 AM, Luigi Calori l.cal...@cineca.it wrote: Hi everybody, I' m trying to use ExternalProject to wrap serveral building recipies for different packages I have to use: I am taking the habit of using it as a

Re: [CMake] FindMKL.cmake

2011-02-09 Thread Robert Bielik
Michael Wild skrev 2011-02-09 16:48: what about this: file(GLOB_RECURSE glob_results /some/pattern*) set(dirs) foreach(f IN LISTS glob_results) get_filename_component(d ${f} PATH) list(APPEND dirs ${d}) endforeach() list(REMOVE_DUPLICATES dirs) Yeah, works fine but it seems to be a lot

[Cmake-commits] CMake branch, next, updated. v2.8.3-1594-g1650349

2011-02-09 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 165034993c64353f1218bb93310dc88b9126d464 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.3-1596-gf80bb47

2011-02-09 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via f80bb47cb72b9fe9607e740766a188ccdebf34dd (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.3-1599-g754520b

2011-02-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 754520b2b5d2cb6c9e74c266d82fa6189702b7b3 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.3-1601-g1e305de

2011-02-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 1e305de012b9c92f9121c4a875254474a443f648 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.3-1603-gb4c5392

2011-02-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via b4c53924a9ad2ca4a2e5546a6bdd479228cf8e2f (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.3-711-ge53b7cb

2011-02-09 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via e53b7cbadf1b7faf353e91b6041a697a90d9584d (commit) from