Re: [CMake] ctest_submit() error

2010-12-29 Thread girish hilage
Hi,    Thanks for your reply.    Yes, CTestConfig.cmake is at the source tree root.    I have now upgraded my cmake and now ctest_submit() is accepting FILES argument.    So I am now giving ctest_submit(FILES )    But it still gives me below error.    "Error in read script: script.cmake"    an

[CMake] CMAKE uses wrong symlink to so

2010-12-29 Thread j s
I specified the full name to an so in CMAKE 2.8.1. Unfortunately it links against the versioned so name, libpython2.6.so.1.0 instead of the exact name I specified. /usr/lib/libpython2.6.so SET (PYTHON_ARCHIVE /usr/lib/libpython2.6.so) TARGET_LINK_LIBRARIES (myapp parser engine ${PYTHON_ARCHIVE}

Re: [CMake] Modules with additional files

2010-12-29 Thread Johannes Wienke
Am 29.12.2010 21:47 schrieb David Cole: > > Variables inside functions inherit their values from the calling > scope. If you need the value of the CMAKE_CURRENT_LIST_DIR in a > function that points to the directory containing the file that the > function is defined in, then you should do something

Re: [CMake] Modules with additional files

2010-12-29 Thread David Cole
On Wed, Dec 29, 2010 at 2:27 PM, Johannes Wienke wrote: > Hey again, > > Am 29.12.2010 20:23 schrieb Johannes Wienke: >> Am 29.12.2010 19:53 schrieb Michael Jackson: >>> I don't understand what you mean by a "module". If you are in a >>> CMakeLists.txt or *.cmake file that is being parsed by CMak

Re: [CMake] Modules with additional files

2010-12-29 Thread Johannes Wienke
Hey again, Am 29.12.2010 20:23 schrieb Johannes Wienke: > Am 29.12.2010 19:53 schrieb Michael Jackson: >> I don't understand what you mean by a "module". If you are in a >> CMakeLists.txt or *.cmake file that is being parsed by CMake then you have >> access to CMAKE_CURRENT_LIST_FILE. I think I

Re: [CMake] Modules with additional files

2010-12-29 Thread Johannes Wienke
Am 29.12.2010 19:53 schrieb Michael Jackson: > > -- > Mike Jackson > > On Dec 29, 2010, at 1:51 PM, Johannes Wienke wrote: > >> Am 29.12.2010 19:22 schrieb Michael Jackson: >>> You want to do something like this: >>> >>> # In the CMake file get the parent directory of the current >>> # cmake fi

Re: [CMake] FLTKConfig.cmake on Microsoft Windows

2010-12-29 Thread Julia Jacobson
Thanks for your answer. The file FindFLTK.cmake exists within my CMake installation, but I still get an error message: "CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE): Could NOT find FLTK (missing: FLTK_LIBRARIES FLTK_FLUID_EXE

Re: [CMake] Modules with additional files

2010-12-29 Thread Michael Jackson
-- Mike Jackson On Dec 29, 2010, at 1:51 PM, Johannes Wienke wrote: > Am 29.12.2010 19:22 schrieb Michael Jackson: >> You want to do something like this: >> >> # In the CMake file get the parent directory of the current >> # cmake file that is being parsed >> get_filename_component( CURRENT_DI

Re: [CMake] Modules with additional files

2010-12-29 Thread Johannes Wienke
Am 29.12.2010 19:22 schrieb Michael Jackson: > You want to do something like this: > > # In the CMake file get the parent directory of the current > # cmake file that is being parsed > get_filename_component( CURRENT_DIR ${CMAKE_CURRENT_LIST_FILE} ABSOLUTE) > > configure_file ( ${CURRENT_DIR}/Som

Re: [CMake] Modules with additional files

2010-12-29 Thread Michael Jackson
You want to do something like this: # In the CMake file get the parent directory of the current # cmake file that is being parsed get_filename_component( CURRENT_DIR ${CMAKE_CURRENT_LIST_FILE} ABSOLUTE) configure_file ( ${CURRENT_DIR}/SomeFile.h.in .. ) Is that what you were looking for? _

Re: [CMake] Modules with additional files

2010-12-29 Thread Johannes Wienke
Hi, Sorry for bumping this, but has anyone got a cue how to do this in a reliable and easy way? Thanks, Johannes Am 23.12.2010 20:49 schrieb Johannes Wienke: > I've got a library that provides several cmake modules and also uses > them. Some of these modules have additional files, e.g. to be use

Re: [CMake] proper setup to create file and have it installed

2010-12-29 Thread edA-qa mort-ora-y
On 12/29/2010 08:55 AM, Michael Hertling wrote: > The tricky part is how to set up the custom command within the loop. Okay, I think I can work with the for-loop. Thank you. -- edA-qa mort-ora-y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- BigTPoker - Poker f

Re: [CMake] FLTKConfig.cmake on Microsoft Windows

2010-12-29 Thread Micha Renner
Am Mittwoch, den 29.12.2010, 12:13 +0100 schrieb Julia Jacobson: > Hello everybody out there using CMake, > > A project I would like to build with CMake uses FLTK. > The CMakeLists.txt file references to FLTK: > ... > SET(FLTK_INCLUDE_DIR C:/Programs/fltk) > FIND_PACKAGE(FLTK REQUIRED) > ... > Ho

Re: [CMake] complete rebuild

2010-12-29 Thread Anders Backman
Ok, Im already using the nightly build (from Tuesday I believe), as I discovered a bug in CMake yesterday. I will bug M$ too :-) /A On Wed, Dec 29, 2010 at 1:03 PM, David Cole wrote: > For Visual Studio generators, CMake does *NO* depedency analysis. It > generates solution and project files su

Re: [CMake] complete rebuild

2010-12-29 Thread David Cole
For Visual Studio generators, CMake does *NO* depedency analysis. It generates solution and project files such that Visual Studio can do all the dependency analysis and decide what to re-build when files change. My advice to you would be: - use only CMake 2.8.3 or newer (a nightly development buil

[CMake] FLTKConfig.cmake on Microsoft Windows

2010-12-29 Thread Julia Jacobson
Hello everybody out there using CMake, A project I would like to build with CMake uses FLTK. The CMakeLists.txt file references to FLTK: ... SET(FLTK_INCLUDE_DIR C:/Programs/fltk) FIND_PACKAGE(FLTK REQUIRED) ... However, CMake tells me that I can't find the file FLTKConfig.cmake, which indeed do

[CMake] complete rebuild

2010-12-29 Thread Anders Backman
Hi all. I have a problem where I have a project of C++ headers and source files which are built into a .lib .dll. Now this works just fine with CMake 2.8.x and VisualStudio 2008. I press F7 everything builds. I press F7 again, it is all built, nothing to be done. But now when I move over to vs20