[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 doesn't exist on my Windows installation.
Do I really need this file, where can I get it and how do use it 
together with CMake.
Moreover, is there a way to make the value of FLTK_INCLUDE_DIR more 
portable? My CMakeLists.txt file like it is would obviously not work

under linux.

Thanks in advance,
Julia
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 build of CMake)
with Visual Studio 10 -- CMake 2.8.2 and earlier had significant bugs
related to VS10 that have since been resolved...
- using a newer CMake, isolate the problem to a minimally reproducible
case and then report a bug in the bug tracker about it including the
steps to reproduce the problem

Reply here again and point us to the bug.


HTH,
David


On Wed, Dec 29, 2010 at 4:07 AM, Anders Backman ande...@cs.umu.se wrote:
 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 vs2010, I get into problems where no matter how
 I build the project, it constantly want to rebuild everything.
 I have tried both 'msbuild project.sln' from the command line, as well as
 build (F7) inside of VisualStudio  as well as using Incredibuild. The result
 is the same. If I press F7, it builds everything as it was not built before.
 I did some googling on the issue, and some suggest that there is a file in
 the project (header) which does not exist on disk, causing the problem.
 We do file(glob) on all files, so a file which is not found, should not be
 part of the project.
 Right now, it seems to be hard to reduce the problem. When I start from the
 full project, 107 files, it want to rebuild everything.
 When I reduce the problem, I can get down to one single file, still it wants
 to build it. Its a c file, and there is nothing special about it. I even
 managed to reduce that down to one function, no includes. still the same
 problem.
 If I copy the relevant files (a few cmakelists.txt and the directory
 structure, including the two files (.h .c) it builds as it should again.
 I tried to run cmake and generate vs2008 files, that works. Open them in
 vs2010, build, then that works (with the two files only).

 So anyway, before I put you all to sleep, as far as I know, there are two
 dependency parsers involved here:
 - CMake runs through source files and generates dependencies, right?
 - THen visual studio does the same (generating the External dependencies
 folder in the project). Now there is SOMETHING wrong in either one, or both
 or none related to VS2010.
 Does someone have any hints on how to debug this problem? I have spent
 substantial time, and I cant seem to get anywhere.
 I cant reduce it to something I can post on the list, as it just magically
 works when I want to rip it out.
 At one point, I had 3 cmakelists, each with about 3 lines. 2 source files
 (.h .c), I did clean on CMakeCache.txt between each cmake . run, loaded the
 project build and got the error. Fairly simple scene. But as soon as I try
 to move that to another dir, it fails.
 Thankful for any advice on the matter.

 --


 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the CMake FAQ at:
 http://www.cmake.org/Wiki/CMake_FAQ

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 david.c...@kitware.com wrote:

 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 build of CMake)
 with Visual Studio 10 -- CMake 2.8.2 and earlier had significant bugs
 related to VS10 that have since been resolved...
 - using a newer CMake, isolate the problem to a minimally reproducible
 case and then report a bug in the bug tracker about it including the
 steps to reproduce the problem

 Reply here again and point us to the bug.


 HTH,
 David


 On Wed, Dec 29, 2010 at 4:07 AM, Anders Backman ande...@cs.umu.se wrote:
  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 vs2010, I get into problems where no matter
 how
  I build the project, it constantly want to rebuild everything.
  I have tried both 'msbuild project.sln' from the command line, as well as
  build (F7) inside of VisualStudio  as well as using Incredibuild. The
 result
  is the same. If I press F7, it builds everything as it was not built
 before.
  I did some googling on the issue, and some suggest that there is a file
 in
  the project (header) which does not exist on disk, causing the problem.
  We do file(glob) on all files, so a file which is not found, should not
 be
  part of the project.
  Right now, it seems to be hard to reduce the problem. When I start from
 the
  full project, 107 files, it want to rebuild everything.
  When I reduce the problem, I can get down to one single file, still it
 wants
  to build it. Its a c file, and there is nothing special about it. I even
  managed to reduce that down to one function, no includes. still the same
  problem.
  If I copy the relevant files (a few cmakelists.txt and the directory
  structure, including the two files (.h .c) it builds as it should again.
  I tried to run cmake and generate vs2008 files, that works. Open them in
  vs2010, build, then that works (with the two files only).
 
  So anyway, before I put you all to sleep, as far as I know, there are two
  dependency parsers involved here:
  - CMake runs through source files and generates dependencies, right?
  - THen visual studio does the same (generating the External dependencies
  folder in the project). Now there is SOMETHING wrong in either one, or
 both
  or none related to VS2010.
  Does someone have any hints on how to debug this problem? I have spent
  substantial time, and I cant seem to get anywhere.
  I cant reduce it to something I can post on the list, as it just
 magically
  works when I want to rip it out.
  At one point, I had 3 cmakelists, each with about 3 lines. 2 source files
  (.h .c), I did clean on CMakeCache.txt between each cmake . run, loaded
 the
  project build and got the error. Fairly simple scene. But as soon as I
 try
  to move that to another dir, it fails.
  Thankful for any advice on the matter.
 
  --
 
 
  ___
  Powered by www.kitware.com
 
  Visit other Kitware open-source projects at
  http://www.kitware.com/opensource/opensource.html
 
  Please keep messages on-topic and check the CMake FAQ at:
  http://www.cmake.org/Wiki/CMake_FAQ
 
  Follow this link to subscribe/unsubscribe:
  http://www.cmake.org/mailman/listinfo/cmake
 




--
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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)

 ...
 However, CMake tells me that I can't find the file FLTKConfig.cmake, 
 which indeed doesn't exist on my Windows installation.
If CMake cannot find FindFLTK.cmake or FLTKConfig.cmake take a look into
C:\Program Files\CMake 2.8\share\cmake-2.8\Modules or where ever you
have installed CMake. Here you should find FindFLTK.cmake. If this file
exists and CMake cannot find it, then you have an installation problem
with CMake.

 Do I really need this file, where can I get it and how do use it 
 together with CMake.
You need FindFLTK.cmake or FLTKConfig.cmake because CMake loads this
file during the call of FIND_PACKAGE. You should have FindFLTK.cmake
already, see above.

 Moreover, is there a way to make the value of FLTK_INCLUDE_DIR more 
 portable? My CMakeLists.txt file like it is would obviously not work
 under linux.
Out-comment the line: SET(FLTK_INCLUDE_DIR C:/Programs/fltk). It is not
an good idea to set FLTK_INCLUDE_DIR in a CMakeLists.txt file, since
FLTK_INCLUDE_DIR is defined and set in FindFLTK.cmake or
FLTKConfig.cmake

Micha


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 fun and games

http://BigTPoker.com/

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.



signature.asc
Description: OpenPGP digital signature
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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}/SomeFile.h.in  .. )
 
 Is that what you were looking for? 

The problem is that I am not in a list file, but in a module. Hence,
CMAKE_CURRENT_LIST_FILE does not work.

For example I got a module that test some features using a cpp file that
needs to be try-compiled and I now need a way to locate this cpp-file.
All default cmake modules use something like CMAKE_ROOT, but I cannot
assume this.

Regards,
Johannes



signature.asc
Description: OpenPGP digital signature
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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_EXECUTABLE)
This is probably due to the fact that I haven't indicated anywhere where 
to find my FLTK installation (i.e. C:\Program Files\fltk-1.1.10).




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 doesn't exist on my Windows installation.

If CMake cannot find FindFLTK.cmake or FLTKConfig.cmake take a look into
C:\Program Files\CMake 2.8\share\cmake-2.8\Modules or where ever you
have installed CMake. Here you should find FindFLTK.cmake. If this file
exists and CMake cannot find it, then you have an installation problem
with CMake.


Do I really need this file, where can I get it and how do use it
together with CMake.

You need FindFLTK.cmake or FLTKConfig.cmake because CMake loads this
file during the call of FIND_PACKAGE. You should have FindFLTK.cmake
already, see above.


Moreover, is there a way to make the value of FLTK_INCLUDE_DIR more
portable? My CMakeLists.txt file like it is would obviously not work
under linux.

Out-comment the line: SET(FLTK_INCLUDE_DIR C:/Programs/fltk). It is not
an good idea to set FLTK_INCLUDE_DIR in a CMakeLists.txt file, since
FLTK_INCLUDE_DIR is defined and set in FindFLTK.cmake or
FLTKConfig.cmake

Micha

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Modules with additional files

2010-12-29 Thread Johannes Wienke
Am 29.12.2010 19:53 schrieb Michael Jackson:
 
 --
 Mike Jackson www.bluequartz.net
 
 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_DIR ${CMAKE_CURRENT_LIST_FILE} ABSOLUTE)

 configure_file ( ${CURRENT_DIR}/SomeFile.h.in  .. )

 Is that what you were looking for? 

 The problem is that I am not in a list file, but in a module. Hence,
 CMAKE_CURRENT_LIST_FILE does not work.

 For example I got a module that test some features using a cpp file that
 needs to be try-compiled and I now need a way to locate this cpp-file.
 All default cmake modules use something like CMAKE_ROOT, but I cannot
 assume this.

 Regards,
 Johannes

 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 am missing something about your 
 particular setup. Maybe some more details would help us. 

Confusing, I thought I checked this twice that CMAKE_CURRENT_LIST_*
always only points to CMakeLists.txt files, but it works perfectly. ;)

Thanks alot, I must have been really tired. ;)

Cheers,
Johannes



signature.asc
Description: OpenPGP digital signature
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 am missing something about your 
 particular setup. Maybe some more details would help us. 
 
 Confusing, I thought I checked this twice that CMAKE_CURRENT_LIST_*
 always only points to CMakeLists.txt files, but it works perfectly. ;)
 
 Thanks alot, I must have been really tired. ;)

Ok, now I understand my original problem: In one of these modules there
is a function defined which originally used CMAKE_CURRENT_LIST_DIR. When
this function is used, CMAKE_CURRENT_LIST_DIR is set to the list file of
the function caller. Somehow I would have expected this behavior only
for macros and not for functions. Is this intended?

Johannes



signature.asc
Description: OpenPGP digital signature
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Modules with additional files

2010-12-29 Thread David Cole
On Wed, Dec 29, 2010 at 2:27 PM, Johannes Wienke
jwie...@techfak.uni-bielefeld.de 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 CMake then you have 
 access to CMAKE_CURRENT_LIST_FILE. I think I am missing something about 
 your particular setup. Maybe some more details would help us.

 Confusing, I thought I checked this twice that CMAKE_CURRENT_LIST_*
 always only points to CMakeLists.txt files, but it works perfectly. ;)

 Thanks alot, I must have been really tired. ;)

 Ok, now I understand my original problem: In one of these modules there
 is a function defined which originally used CMAKE_CURRENT_LIST_DIR. When
 this function is used, CMAKE_CURRENT_LIST_DIR is set to the list file of
 the function caller. Somehow I would have expected this behavior only
 for macros and not for functions. Is this intended?

 Johannes


 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the CMake FAQ at: 
 http://www.cmake.org/Wiki/CMake_FAQ

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake


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 like this:

# MyModule.cmake
set(MyModule_DIR ${CMAKE_CURRENT_LIST_DIR})
  # important that this set call is at file scope outside of function
declarations...

function(that_needs_list_dir ...)
  set(dir MyModule_DIR)
  # use ${dir} here if necessary
endfunction()

Of course, you're subject to global variable name clashes at this
point so the global variable name should somehow incorporate the
name of the file it lives in, and perhaps be named more cleverly than
my example here so that you can avoid colliding with some other
module's variable name.

More context (sample code from your modules) would help us answer your
questions more effectively

By the way, CMAKE_CURRENT_LIST_DIR is new. It's only in CMake 2.8.3 and later.


HTH,
David
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 like this:
 
 # MyModule.cmake
 set(MyModule_DIR ${CMAKE_CURRENT_LIST_DIR})
   # important that this set call is at file scope outside of function
 declarations...
 
 function(that_needs_list_dir ...)
   set(dir MyModule_DIR)
   # use ${dir} here if necessary
 endfunction()

Thanks, I already did something like that.

 Of course, you're subject to global variable name clashes at this
 point so the global variable name should somehow incorporate the
 name of the file it lives in, and perhaps be named more cleverly than
 my example here so that you can avoid colliding with some other
 module's variable name.

Ok. Good to know.

 More context (sample code from your modules) would help us answer your
 questions more effectively
 
 By the way, CMAKE_CURRENT_LIST_DIR is new. It's only in CMake 2.8.3 and later.

Thanks for the reminder.

Johannes



signature.asc
Description: OpenPGP digital signature
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[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}
${OPENSSL_ARCHIVE})

Is there any way to tell cmake to do the right thing in Linux?  For some
strange reason using -l on the link line, and doesn't even use the
corresponding -L to the path I specify.
  -lpython2.6


Regards,

Juan
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 path_to_Test.xml)
   But it still gives me below error.
   Error in read script: script.cmake

   and says Submission successful. But CDASH dashboard does not show any 
build submitted.

   If I only give ctest_submit() with no arguments then it works fine.
   Format of my Test.xml is same as Test.xml generated if I only give 
ctest_submit().
___
   Another query is regarding time shown on the dashboard :

   I can see below string on the dashboard main page :
   No file changed as of Thursday, December 30 2010 00:01:00 IST

   I have given :

   Nightly Start Time: 20:31:00 IST

   in ADMINISTRATION--Project--Testing

   If I change this time then I can see change in the timestamp shown on main 
dashboard page.

___
   So, my queries are :
   1. how do I make my customized report submission to dashboard?
   2. what is the relation between these two timestamps (Nightly start time and 
timestamp shown on main dashboard page)?
   3. I have given nightly start time in this file as : 00:00:00 IST in 
CTestConfig.cmake file.
  So, I should also give 00:00:00 IST in 
ADMINISTRATION--Project--Testing--Nightly Start Time ?
 
Regards,
Girish 

--- On Tue, 12/28/10, David Cole david.c...@kitware.com wrote:


From: David Cole david.c...@kitware.com
Subject: Re: [CMake] ctest_submit() error
To: girish hilage girish_hil...@yahoo.com
Cc: cmake@cmake.org
Date: Tuesday, December 28, 2010, 11:29 AM



On Tue, Dec 28, 2010 at 6:00 AM, girish hilage girish_hil...@yahoo.com wrote:






Hi,

   Thanks for your reply.
   I have now 2 different files CTestConfig.cmake and script.cmake
   I am giving the command :

   ctest -S script.cmake -VV

   my script.cmake has following lines in it (skipped initial lines) :
..
..
ctest_start(Nightly)
ctest_update()
ctest_configure()
ctest_build()
ctest_test()
ctest_coverage()
ctest_submit()

   Now, the issues are :

   1. it is not submitting under Nightly section on CDASH but under 
Experimental section.
   I even tried enclosing word 'Nightly' inside double quotes 
[ctest_start(Nightly)], but thats also not working.

   2. if I give :
  ctest_submit(FILES path_to_my_customized_Report.xml_file)

  instead of ctest_submit(), it gives me error :

  CMake Error at script.cmake:37 (ctest_submit):
    ctest_submit called with incorrect number of arguments.  Extra argument 
is:
    FILES.

   How can I submit under Nightly section on CDASH and how do I submit my 
customized Report.xml test result file?

Regards,
Girish 


--- On Mon, 12/27/10, David Cole david.c...@kitware.com wrote:


From: David Cole david.c...@kitware.com
Subject: Re: [CMake] ctest_submit() error
To: girish hilage girish_hil...@yahoo.com
Cc: cmake@cmake.org
Date: Monday, December 27, 2010, 1:55 PM





On Mon, Dec 27, 2010 at 8:39 AM, girish hilage girish_hil...@yahoo.com wrote:







Hi,

I am a newbie to cmake and cdash.
I am trying to submit my customized report to CDASH using ctest_submit(FILES 
path to report file) but getting following errors.

- if I give it in CTestConfig.cmake and give cmake . then I am getting below 
error :

CMake Error at CTestConfig.cmake:8 (ctest_submit):
  Unknown CMake command ctest_submit.
Call Stack (most recent call first):
  /usr/share/cmake-2.6/Modules/CTest.cmake:50 (INCLUDE)
  CMakeLists.txt:117 (INCLUDE)

- if I give it in CMakeLists.txt and give cmake . then I am getting below 
error :

CMake Error at CMakeLists.txt:121 (ctest_submit):
  Unknown CMake command ctest_submit.

So want to ask :
1. Am I using ctest_submit() properly for the purpose of submitting the 
customized report or is there any other way to do this?
2. In which file should I give ctest_submit() (CTestConfig.cmake or 
CMakeLists.txt)?





Neither. Calls to ctest_submit belong in ctest -S scripts that drive 
dashboard builds and submissions. CMake itself does not implement any of the 
ctest_* commands, so you can only call them from ctest scripts.


HTH,
David


 






Regards,
Girish

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



CTestConfig.cmake should be at the root of your source tree, right next to 
CMakeLists.txt. Is it?

What version of ctest are you running? (i.e. what is the output of ctest 
--version?)

ctest_submit did not handle the FILES argument until version 2.8. (From your 
initial output it looks like you're using ctest 2.6.x)

Do you have a nightly start 

[Cmake-commits] CMake branch, next, updated. v2.8.3-1121-g5590c41

2010-12-29 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  5590c411f7086716a153bddcc881fdb0f1fa3ebc (commit)
   via  dbc79bd8c8d5b9ef078401064db9bb0554affbcf (commit)
  from  b1015e187ffa3d02384fedeab1a0a414e4255283 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5590c411f7086716a153bddcc881fdb0f1fa3ebc
commit 5590c411f7086716a153bddcc881fdb0f1fa3ebc
Merge: b1015e1 dbc79bd
Author: Brad King brad.k...@kitware.com
AuthorDate: Wed Dec 29 15:47:27 2010 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Wed Dec 29 15:47:27 2010 -0500

Merge topic 'compiler-id-literal-const' into next

dbc79bd Fix constness in compiler id detection


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=dbc79bd8c8d5b9ef078401064db9bb0554affbcf
commit dbc79bd8c8d5b9ef078401064db9bb0554affbcf
Author: Brad King brad.k...@kitware.com
AuthorDate: Wed Dec 29 15:35:15 2010 -0500
Commit: Brad King brad.k...@kitware.com
CommitDate: Wed Dec 29 15:35:15 2010 -0500

Fix constness in compiler id detection

Since commit 70c2dc8a (Make compiler id detection more robust,
2008-03-10) we store compiler identification strings in test binaries
using the form

  char* info = info;

Use the const-correct

  char const* info = info;

form instead.  This allows the C++ compiler identification to work with
-Werror -Wall or equivalent flags if the compiler would warn about
const-to-non-const conversion.

diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in
index accda32..27fa341 100644
--- a/Modules/CMakeCCompilerId.c.in
+++ b/Modules/CMakeCCompilerId.c.in
@@ -85,7 +85,7 @@
getting matched.  Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array.  */
-char* info_compiler = INFO : compiler[ COMPILER_ID ];
+char const* info_compiler = INFO : compiler[ COMPILER_ID ];
 
 @CMAKE_C_COMPILER_ID_PLATFORM_CONTENT@
 
diff --git a/Modules/CMakeCXXCompilerId.cpp.in 
b/Modules/CMakeCXXCompilerId.cpp.in
index 4a32823..af84ae8 100644
--- a/Modules/CMakeCXXCompilerId.cpp.in
+++ b/Modules/CMakeCXXCompilerId.cpp.in
@@ -76,7 +76,7 @@
getting matched.  Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array.  */
-char* info_compiler = INFO : compiler[ COMPILER_ID ];
+char const* info_compiler = INFO : compiler[ COMPILER_ID ];
 
 @CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT@
 
diff --git a/Modules/CMakePlatformId.h.in b/Modules/CMakePlatformId.h.in
index e20348a..718e289 100644
--- a/Modules/CMakePlatformId.h.in
+++ b/Modules/CMakePlatformId.h.in
@@ -109,6 +109,6 @@
getting matched.  Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array.  */
-char* info_platform = INFO : platform[ PLATFORM_ID ];
-char* info_arch = INFO : arch[ ARCHITECTURE_ID ];
+char const* info_platform = INFO : platform[ PLATFORM_ID ];
+char const* info_arch = INFO : arch[ ARCHITECTURE_ID ];
 

---

Summary of changes:
 Modules/CMakeCCompilerId.c.in |2 +-
 Modules/CMakeCXXCompilerId.cpp.in |2 +-
 Modules/CMakePlatformId.h.in  |4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v2.8.3-370-g91c06e9

2010-12-29 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  91c06e90229ca74296f2644feac120dd3ae008f3 (commit)
  from  5e9d8a295295ac77dd8984f256420a6a6e4d5465 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=91c06e90229ca74296f2644feac120dd3ae008f3
commit 91c06e90229ca74296f2644feac120dd3ae008f3
Author: KWSys Robot kwro...@kitware.com
AuthorDate: Thu Dec 30 00:01:10 2010 -0500
Commit: KWSys Robot kwro...@kitware.com
CommitDate: Thu Dec 30 00:11:02 2010 -0500

KWSys Nightly Date Stamp

diff --git a/Source/kwsys/kwsysDateStamp.cmake 
b/Source/kwsys/kwsysDateStamp.cmake
index 68de67f..fd586a7 100644
--- a/Source/kwsys/kwsysDateStamp.cmake
+++ b/Source/kwsys/kwsysDateStamp.cmake
@@ -18,4 +18,4 @@ SET(KWSYS_DATE_STAMP_YEAR  2010)
 SET(KWSYS_DATE_STAMP_MONTH 12)
 
 # KWSys version date day component.  Format is DD.
-SET(KWSYS_DATE_STAMP_DAY   29)
+SET(KWSYS_DATE_STAMP_DAY   30)

---

Summary of changes:
 Source/kwsys/kwsysDateStamp.cmake |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits