Re: [cmake-developers] Fixing ProcessorCount.cmake

2010-11-08 Thread David Cole
Hi Rolf,

Can you update to a CMake based on 'next' and try the commit I made this
morning on a QNX machine? (based on your patch, thank you for that...)

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=680ca4baab85cbc1be98bcfd81b7e4402ffa8d84

We are supposed to have a continuous and a nightly QNX dashboard running,
but they do not seem to be reporting for the last few days.


Thanks,
David


On Sat, Nov 6, 2010 at 4:52 PM, David Cole david.c...@kitware.com wrote:

 I will keep going with this on Monday

 It was my intent to make the test fail last night on platforms where
 we could not determine the processor count, so we'd get a good sense
 of how much work remains for the platforms not yet accounted for. But
 I messed up the test a bit.

 I'll correct that, and apply this patch on Monday and we'll keep
 moving forward. Hopefully other folks can chime in after that if there
 are still more platforms where we need to use other techniques to come
 up with the result.

 Thanks for the patch!


 More next week,
 David


 On Sat, Nov 6, 2010 at 6:38 AM, Rolf Eike Beer e...@sf-mail.de wrote:
  I feel like I'm taking the position the great Greg KH has in Linux kernel
  development: the maintainer of crap. You write it QNX but you speak it
  crap. Don't get me wrong, I hate this stuff. But I have to deal with it
 so I
  want CMake work there properly to reduce my pain.
 
  So here is a fix for the ProcessorCount.cmake module to work properly
 there.
  This also makes it possible on all platforms that have getconf to detect
 if
  _NPROCESSORS_ONLN is not supported.
 
  I would love to see if someone of Kitware could get into contact with the
 guys
  at QNX. AFAIK there is sort of a free partner program where you get
 developer
  licenses of their OS. I have two virtual machines (Linux KVM) running
 with
  6.4.1 and 6.5.0 which works (for some values of works). If you would go
 and
  throw something like 6.3.2, 6.4.1, and 6.5.0 in virtual machines you
 could
  make them build cmake nightly and test all this stuff. Sadly I can't use
 my
  work machines for that (for different reasons).
 
  Eike
 
  ___
  cmake-developers mailing list
  cmake-developers@cmake.org
  http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
 
 

___
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] Fixing ProcessorCount.cmake

2010-11-08 Thread David Cole
FYI:

The output that you see, both directly from ProcessorCount.cmake, and
indirectly from the tools that it calls to try to determine the processor
count, will be eliminated shortly (over the next few days)... but for now...
it is being left in for dashboard diagnostics so that I can see what is
happening on machines that I do not have direct access to.

Also, if anybody has good suggestions for how to grab this information on
the following platforms, please do let me know (a patch or even just
pointers to relevant info in platform documentation):
- AIX
- FreeBSD / OpenBSD
- HP
- IRIX
- Sun

Otherwise, this function may end up being useful only for Linux, Mac, QNX
and Windows...

Thanks for your patience while this is under development.


David Cole
Kitware, Inc.


On Mon, Nov 8, 2010 at 12:38 PM, David Cole david.c...@kitware.com wrote:

 Hi Rolf,

 Can you update to a CMake based on 'next' and try the commit I made this
 morning on a QNX machine? (based on your patch, thank you for that...)


 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=680ca4baab85cbc1be98bcfd81b7e4402ffa8d84

 We are supposed to have a continuous and a nightly QNX dashboard running,
 but they do not seem to be reporting for the last few days.


 Thanks,
 David


 On Sat, Nov 6, 2010 at 4:52 PM, David Cole david.c...@kitware.com wrote:

 I will keep going with this on Monday

 It was my intent to make the test fail last night on platforms where
 we could not determine the processor count, so we'd get a good sense
 of how much work remains for the platforms not yet accounted for. But
 I messed up the test a bit.

 I'll correct that, and apply this patch on Monday and we'll keep
 moving forward. Hopefully other folks can chime in after that if there
 are still more platforms where we need to use other techniques to come
 up with the result.

 Thanks for the patch!


 More next week,
 David


 On Sat, Nov 6, 2010 at 6:38 AM, Rolf Eike Beer e...@sf-mail.de wrote:
  I feel like I'm taking the position the great Greg KH has in Linux
 kernel
  development: the maintainer of crap. You write it QNX but you speak it
  crap. Don't get me wrong, I hate this stuff. But I have to deal with
 it so I
  want CMake work there properly to reduce my pain.
 
  So here is a fix for the ProcessorCount.cmake module to work properly
 there.
  This also makes it possible on all platforms that have getconf to detect
 if
  _NPROCESSORS_ONLN is not supported.
 
  I would love to see if someone of Kitware could get into contact with
 the guys
  at QNX. AFAIK there is sort of a free partner program where you get
 developer
  licenses of their OS. I have two virtual machines (Linux KVM) running
 with
  6.4.1 and 6.5.0 which works (for some values of works). If you would go
 and
  throw something like 6.3.2, 6.4.1, and 6.5.0 in virtual machines you
 could
  make them build cmake nightly and test all this stuff. Sadly I can't use
 my
  work machines for that (for different reasons).
 
  Eike
 
  ___
  cmake-developers mailing list
  cmake-developers@cmake.org
  http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
 
 



___
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] Fixing ProcessorCount.cmake

2010-11-08 Thread Rolf Eike Beer
Am Montag, 8. November 2010 schrieb David Cole:
 Hi Rolf,
 
 Can you update to a CMake based on 'next' and try the commit I made this
 morning on a QNX machine? (based on your patch, thank you for that...)
 
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=680ca4baab85cbc1be98bcfd
 81b7e4402ffa8d84

Thanks, I've already seen that. Will test soon.

 We are supposed to have a continuous and a nightly QNX dashboard running,
 but they do not seem to be reporting for the last few days.

This is already for a while, they report like one or twice a week.

IMHO you should really think about getting a Quad or more core with some GB of 
RAM and jail in there some QNX, *BSD and whatnot.

Eike


signature.asc
Description: This is a digitally signed message part.
___
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] Fixing ProcessorCount.cmake

2010-11-08 Thread Rolf Eike Beer
Am Montag, 8. November 2010 schrieb David Cole:
 Hi Rolf,
 
 Can you update to a CMake based on 'next' and try the commit I made this
 morning on a QNX machine? (based on your patch, thank you for that...)

Still needs some tweak, as the output is:

getconf: Can't find _NPROCESSORS_ONLN
ProcessorCount: using getconf '/usr/bin/getconf'
ProcessorCount: using pidin '/bin/pidin'
processor_count='1'

Patch attached.

Eike
From 4a9d6fcde4a301eee3e41f1e4c6fa7a6197892d4 Mon Sep 17 00:00:00 2001
From: Rolf Eike Beer e...@sf-mail.de
Date: Mon, 8 Nov 2010 19:54:41 +0100
Subject: [PATCH] catch all error messages from processes called in ProcessorCount module so they don't clutter the output

---
 Modules/ProcessorCount.cmake |9 ++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/Modules/ProcessorCount.cmake b/Modules/ProcessorCount.cmake
index 5c38267..ffc5a9d 100644
--- a/Modules/ProcessorCount.cmake
+++ b/Modules/ProcessorCount.cmake
@@ -38,7 +38,8 @@ function(ProcessorCount var)
 if(ProcessorCount_cmd_sysctl)
   execute_process(COMMAND ${ProcessorCount_cmd_sysctl} -n hw.ncpu
 OUTPUT_STRIP_TRAILING_WHITESPACE
-OUTPUT_VARIABLE count)
+OUTPUT_VARIABLE count
+ERROR_VARIABLE trash)
   message(ProcessorCount: using sysctl '${ProcessorCount_cmd_sysctl}')
 endif()
   else()
@@ -47,7 +48,8 @@ function(ProcessorCount var)
 if(ProcessorCount_cmd_getconf)
   execute_process(COMMAND ${ProcessorCount_cmd_getconf} _NPROCESSORS_ONLN
 OUTPUT_STRIP_TRAILING_WHITESPACE
-OUTPUT_VARIABLE count)
+OUTPUT_VARIABLE count
+ERROR_VARIABLE trash)
   message(ProcessorCount: using getconf '${ProcessorCount_cmd_getconf}')
 endif()
 
@@ -57,7 +59,8 @@ function(ProcessorCount var)
   if(ProcessorCount_cmd_pidin)
 execute_process(COMMAND ${ProcessorCount_cmd_pidin} info
   OUTPUT_STRIP_TRAILING_WHITESPACE
-  OUTPUT_VARIABLE pidin_output)
+  OUTPUT_VARIABLE pidin_output
+  ERROR_VARIABLE trash)
 string(REGEX MATCHALL Processor[0-9]+:  procs ${pidin_output})
 list(LENGTH procs count)
 message(ProcessorCount: using pidin '${ProcessorCount_cmd_pidin}')
-- 
1.7.1



signature.asc
Description: This is a digitally signed message part.
___
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] Fixing ProcessorCount.cmake

2010-11-08 Thread Bill Hoffman

On 11/8/2010 1:55 PM, Rolf Eike Beer wrote:

Am Montag, 8. November 2010 schrieb David Cole:

Hi Rolf,

Can you update to a CMake based on 'next' and try the commit I made this
morning on a QNX machine? (based on your patch, thank you for that...)


Still needs some tweak, as the output is:

getconf: Can't find _NPROCESSORS_ONLN
ProcessorCount: using getconf '/usr/bin/getconf'
ProcessorCount: using pidin '/bin/pidin'
processor_count='1'

Patch attached.

Eike


I wonder if we could create a test for this that called the 
SystemInformation class and compared its results with this script.  I 
bet it would fix bugs in both the script and SystemInformation.


-Bill
___
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] Fixing ProcessorCount.cmake

2010-11-08 Thread Rolf Eike Beer
Am Montag, 8. November 2010 schrieb David Cole:
 I'm leaving that output in there on purpose to see what happens on all of
 our dashboard machines. I will not eliminate this extraneous output until
 later.
 
 But, don't worry, this will not be merged to master until all the
 extraneous output is eliminated.

Fine with me, I just thought you meant the explicit messages.

Eike


signature.asc
Description: This is a digitally signed message part.
___
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] Fixing ProcessorCount.cmake

2010-11-08 Thread Bill Hoffman

On 11/8/2010 3:30 PM, Rolf Eike Beer wrote:

Am Montag, 8. November 2010 schrieb Bill Hoffman:

On 11/8/2010 1:55 PM, Rolf Eike Beer wrote:

Am Montag, 8. November 2010 schrieb David Cole:

Hi Rolf,

Can you update to a CMake based on 'next' and try the commit I made this
morning on a QNX machine? (based on your patch, thank you for that...)


Still needs some tweak, as the output is:

getconf: Can't find _NPROCESSORS_ONLN
ProcessorCount: using getconf '/usr/bin/getconf'
ProcessorCount: using pidin '/bin/pidin'
processor_count='1'

Patch attached.

Eike


I wonder if we could create a test for this that called the
SystemInformation class and compared its results with this script.  I
bet it would fix bugs in both the script and SystemInformation.


It would show up for sure places where at one place this is divided into
physical and logical cores and just cpus on the other hand.


On my machine I get this:

   CMake.ProcessorCount

180: ProcessorCount: using environment variable
180: processor_count='4'

 kwsys.testSystemInformation

11: GetNumberOfLogicalCPU: 1
11: GetNumberOfPhysicalCPU: 4

So, if we had a test that just ran:
 kwsys.testSystemInformation

And pulled out the GetNumberOfPhysicalCPU value and did a compare, they 
should be consistent.  If they are not, then one of them will need 
fixing...


-Bill


___
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


[CMake] newbie question

2010-11-08 Thread Yong Chul Ju
1. cmake:mex problem
According to the webpage (http://www.cmake.org/Wiki/CMake:MatlabMex)
we can tell CMake (patched version) to treat the mex build script as the
project's compiler which can be done by the command (CC=mex CXX=mex cmake
/path/to/project/source).
For the examples they provided, it has no problem. It works perfectly fine.
But when it comes to kvl code, it does not.

When I run the command: CC=/m/fs/software/matlab/r2010b/bin/mex
CXX=/m/fs/software/matlab/r2010b/bin/mex ../../cmake-2.8.2/bin/cmake
../my project name
-- Configuring done
-- Generating done
-- Build files have been written to: /my project path

After that, when I run make, then I got following:

[  0%] Building CXX object CMakeFiles/kvlAddBorder.dir/kvlAddBorder.o

mex:  -ftemplate-depth-50 not a valid option.

Usage:
  MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
  [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

Use the -help option for more information, or consult the MATLAB
External Interfaces Guide.

make[2]: *** [CMakeFiles/kvlAddBorder.dir/kvlAddBorder.o] Error 1
make[1]: *** [CMakeFiles/kvlAddBorder.dir/all] Error 2
make: *** [all] Error 2

The problem is I cannot find any option of -ftemplate-depth-50 anywhere
in mex.

The project uses ITK, VTK (built by CMake release mode), fltk, gmm, tetgen.

For all the above mentioned program, patched version of CMake was used.

What seems to be a problem?
___
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 compiler-output beautification

2010-11-08 Thread luxInteg
Greetings,

I am learning cmake.  I would like to know if there are ways to beautify the 
compiler output  when  using cmake.  In brioef  how to seperate and label the 
making 

of libraries, 
of documentation and 
of executables 

in clearly defined segments of the compiler spew.


advice would be appreciated.
luxInteg.
___
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] Submitting to CDash fails with error 417

2010-11-08 Thread Gerhard Gappmeier
Hi all,

I've setup CDash locally using lighttpd and created a test project 
helloworld.

I configured CTestConfig.txt to find my local CDash.
When I now run make Nightly submitting the results fails.

Did I forget some configuration? Maybe authentification options?
Or does CDash just not work with lighttpd?

CTestConfig.cmake:
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
##   ENABLE_TESTING()
##   INCLUDE(CTest)
set(CTEST_PROJECT_NAME helloworld)
set(CTEST_NIGHTLY_START_TIME 00:00:00 EST)

set(CTEST_DROP_METHOD http)
set(CTEST_DROP_SITE localhost)
set(CTEST_DROP_LOCATION /CDash/submit.php?project=helloworld)
set(CTEST_DROP_SITE_CDASH TRUE)

Output from make Nightly:
   Site: lt-gergap.ascolab.com
   Build name: Linux-
Determine Nightly Start Time
   Specified time: 00:00:00 EDT
Create new tag: 20101108-0400 - Nightly
   Updating the repository: /home/gergap/work/helloworld/src
Cannot find UpdateCommand  configuration key.
Configure project
   Each . represents 1024 bytes of output
. Size of output: 0K
Build project
   Each symbol represents 1024 bytes of output.
   '!' represents an error and '*' a warning.
. Size of output: 4K
   0 Compiler errors
   0 Compiler warnings
Test project /home/gergap/work/helloworld/bldRelease
Start 1: SimpleTest
1/3 Test #1: SimpleTest ...   Passed0.00 sec
Start 2: NegativeTest
2/3 Test #2: NegativeTest .   Passed0.00 sec
Start 3: DoubleNegativeTest
3/3 Test #3: DoubleNegativeTest ...   Passed0.00 sec

100% tests passed, 0 tests failed out of 3

Total Test time (real) =   0.01 sec
Performing coverage
 Cannot find any coverage files. Ignoring Coverage request.
Submit files (using http)
   Using HTTP submit method
   Drop site:http://localhost/CDash/submit.php?project=helloworld
   Error when uploading file: 
/home/gergap/work/helloworld/bldRelease/Testing/20101108-0400/Build.xml
   Error message was: The requested URL returned error: 417
   Problems when submitting via HTTP
Errors while running CTest
make[3]: *** [CMakeFiles/Nightly] Error 65
make[2]: *** [CMakeFiles/Nightly.dir/all] Error 2
make[1]: *** [CMakeFiles/Nightly.dir/rule] Error 2
make: *** [Nightly] Error 2

Complete source for testing is available here:
git clone git://github.com/gergap/helloworld.git

-- 
mit freundlichen Grüßen / best regards

*Gerhard Gappmeier*
ascolab GmbH - automation systems communication laboratory
Tel.: +49 9131 691 123
Fax: +49 9131 691 128
Web: http://www.ascolab.com
GPG Key Id: 5AAC50C4
GPG Fingerprint: 967A 15F1 2788 164D CCA3 6C46 07CD 6F82 5AAC 50C4

--
*ascolab GmbH*
Geschäftsführer: Gerhard Gappmeier, Matthias Damm, Uwe Steinkrauß
Sitz der Gesellschaft: Am Weichselgarten 7 . 91058 Erlangen . Germany
Registernummer: HRB 9360
Registergericht: Amtsgericht Fürth
___
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] Fwd: Submitting to CDash fails with error 417

2010-11-08 Thread Julien Jomier

Dear Gerhard,

My guess is that your server is not supporting HTTP PUT protocol. I 
believe you have to explicitly enable the protocol for lighttpd.


Let us know if that was the problem,
Julien


-- Forwarded message --
From: *Gerhard Gappmeier* gerhard.gappme...@ascolab.com
mailto:gerhard.gappme...@ascolab.com
Date: Mon, Nov 8, 2010 at 10:14 AM
Subject: [CMake] Submitting to CDash fails with error 417
To: cmake@cmake.org mailto:cmake@cmake.org


Hi all,

I've setup CDash locally using lighttpd and created a test project
helloworld.

I configured CTestConfig.txt to find my local CDash.
When I now run make Nightly submitting the results fails.

Did I forget some configuration? Maybe authentification options?
Or does CDash just not work with lighttpd?

CTestConfig.cmake:
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
##   ENABLE_TESTING()
##   INCLUDE(CTest)
set(CTEST_PROJECT_NAME helloworld)
set(CTEST_NIGHTLY_START_TIME 00:00:00 EST)

set(CTEST_DROP_METHOD http)
set(CTEST_DROP_SITE localhost)
set(CTEST_DROP_LOCATION /CDash/submit.php?project=helloworld)
set(CTEST_DROP_SITE_CDASH TRUE)

Output from make Nightly:
   Site: lt-gergap.ascolab.com http://lt-gergap.ascolab.com
   Build name: Linux-
Determine Nightly Start Time
   Specified time: 00:00:00 EDT
Create new tag: 20101108-0400 - Nightly
   Updating the repository: /home/gergap/work/helloworld/src
Cannot find UpdateCommand  configuration key.
Configure project
   Each . represents 1024 bytes of output
. Size of output: 0K
Build project
   Each symbol represents 1024 bytes of output.
'!' represents an error and '*' a warning.
. Size of output: 4K
   0 Compiler errors
   0 Compiler warnings
Test project /home/gergap/work/helloworld/bldRelease
Start 1: SimpleTest
1/3 Test #1: SimpleTest ...   Passed0.00 sec
Start 2: NegativeTest
2/3 Test #2: NegativeTest .   Passed0.00 sec
Start 3: DoubleNegativeTest
3/3 Test #3: DoubleNegativeTest ...   Passed0.00 sec

100% tests passed, 0 tests failed out of 3

Total Test time (real) =   0.01 sec
Performing coverage
  Cannot find any coverage files. Ignoring Coverage request.
Submit files (using http)
   Using HTTP submit method
   Drop site:http://localhost/CDash/submit.php?project=helloworld
   Error when uploading file:
/home/gergap/work/helloworld/bldRelease/Testing/20101108-0400/Build.xml
   Error message was: The requested URL returned error: 417
   Problems when submitting via HTTP
Errors while running CTest
make[3]: *** [CMakeFiles/Nightly] Error 65
make[2]: *** [CMakeFiles/Nightly.dir/all] Error 2
make[1]: *** [CMakeFiles/Nightly.dir/rule] Error 2
make: *** [Nightly] Error 2

Complete source for testing is available here:
git clone git://github.com/gergap/helloworld.git
http://github.com/gergap/helloworld.git

--
mit freundlichen Grüßen / best regards

*Gerhard Gappmeier*
ascolab GmbH - automation systems communication laboratory
Tel.: +49 9131 691 123
Fax: +49 9131 691 128
Web: http://www.ascolab.com
GPG Key Id: 5AAC50C4
GPG Fingerprint: 967A 15F1 2788 164D CCA3 6C46 07CD 6F82 5AAC 50C4

--
*ascolab GmbH*
Geschäftsführer: Gerhard Gappmeier, Matthias Damm, Uwe Steinkrauß
Sitz der Gesellschaft: Am Weichselgarten 7 . 91058 Erlangen . Germany
Registernummer: HRB 9360
Registergericht: Amtsgericht Fürth
___
Powered by www.kitware.com http://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



--
Phone: 1-518-836-2174
Ext: 304

___
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] 2.8.3 fortran regression or how to find configure problem

2010-11-08 Thread Allen D Byrne
Friday I upgraded my windows VS2008 and IVF111 machines to cmake 2.8.3. Over 
the weekend they all failed to configure with fortran :
-- Check for working Fortran compiler using: Visual Studio 9 2008  -- broken
CMake Error at C:/Program Files/CMake 
2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):
  The Fortran compiler ifort is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/autotest/HDF4CMake/tests/Monday-vs9/Build/CMakeFiles/CMakeTmp

  

  Run Build Command:c:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec

  

  Microsoft (R) Visual Studio Version 9.0.21022.8.

  Copyright (C) Microsoft Corp.  All rights reserved.

Include with this update was a 'MS Windows update' cycle as well. I will try 
next to go back to 2.8.2 and try again.
Also, I could use some help on finding the cause.

Allen
___
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] Merging gcc unit tests into a TI DSP crosscompiler build system

2010-11-08 Thread Wojciech Migda
Hi,

in our company we have a robust cmake-based build system which utilizes TI DSP 
cgtools compiler. Aside from that we are developing gcc-based unit tests 
(CxxTest coupled with CMake/CTest/CDash combo). We are considering merging the 
latter into the former, but we kind of don't even know how to put them together 
so that two C/C++ compilers can coexist in a single CMake build system. I tried 
inserting ADD_SUBDIRECTORY pointing to one of the test suites CMakeLists.txt 
file into the main CMakeLists.txt of the core build system but it blows 
everything up.

Has anyone attempted this kind of configuration already ? Is it achievable with 
CMake at all ?

We are using CMake 2.6.4 release.

Thanks in advance,

Wojtek


--
Duzi chlopcy lubia wampiry i krew.
http://linkint.pl/f2718

___
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] 2.8.3 fortran regression or how to find configure problem

2010-11-08 Thread Biddiscombe, John A.
When using ifort on windows I do the following


a)  Make sure cmake is launched from inside a cmd prompt with the 
ifort-vars.bat set so that the ifort compiler is on the path etc etc

b)  always use nmake makefiles to do the initial configure and detection

c)   once the project is ready to compile, you can edit the cmakecache and 
insert the visual studio (2008) generator, then rerun cmake and regenerate.

Now you are a happy bunny and can compile using the IDE if desired - or skip C 
and use nmake

JB


From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of 
Allen D Byrne
Sent: 08 November 2010 16:18
To: cmake@cmake.org
Subject: [CMake] 2.8.3 fortran regression or how to find configure problem


Friday I upgraded my windows VS2008 and IVF111 machines to cmake 2.8.3. Over 
the weekend they all failed to configure with fortran :

-- Check for working Fortran compiler using: Visual Studio 9 2008 -- broken

CMake Error at C:/Program Files/CMake 
2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):

  The Fortran compiler ifort is not able to compile a simple test program.



  It fails with the following output:



   Change Dir: C:/autotest/HDF4CMake/tests/Monday-vs9/Build/CMakeFiles/CMakeTmp







  Run Build Command:c:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com

  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec







  Microsoft (R) Visual Studio Version 9.0.21022.8.



  Copyright (C) Microsoft Corp.  All rights reserved.



Include with this update was a 'MS Windows update' cycle as well. I will try 
next to go back to 2.8.2 and try again.

Also, I could use some help on finding the cause.

Allen
___
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] help with learning add_library

2010-11-08 Thread luxInteg
On Saturday 06 November 2010 23:08:29 Eric Noulard wrote:

 
 I think you cannot use **the same** file properties on a source file
 and expect CMake will compile the file twice for the same target.
 If you want to compile the same source file twice with different compile
 flags **FOR THE SAME TARGET** you have to copy this file
 

 SET_SOURCE_FILES_PROPERTIES(file1-long.c PROPERTIES
 COMPILE_DEFINITIONS -DLONG)


 ** same for file 2 **
 ADD_LIBRARY(LearnCMAKE-static STATIC file1.c file1-long.c file2.c
 file2-long.c) ADD_LIBRARY(LearnCMAKE-shared SHARED file1.c file1-long.c
 file2.c file2-long.c)

BUT
suppose I decide to set   file1.c and file2.c   as some variable FILES and I 
want to use a preprocessor say DLONG 
 could I do the following?

set(FILES file1.c file2.c )
SET_SOURCE_FILES_PROPERTIES(${FILES} PROPERTIES COMPILE_DEFINITIONS -DLONG)


___
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] help with learning add_library

2010-11-08 Thread Eric Noulard
2010/11/8 luxInteg lux-in...@btconnect.com:
 On Saturday 06 November 2010 23:08:29 Eric Noulard wrote:


 I think you cannot use **the same** file properties on a source file
 and expect CMake will compile the file twice for the same target.
 If you want to compile the same source file twice with different compile
 flags **FOR THE SAME TARGET** you have to copy this file


 SET_SOURCE_FILES_PROPERTIES(file1-long.c PROPERTIES
 COMPILE_DEFINITIONS -DLONG)


 ** same for file 2 **
 ADD_LIBRARY(LearnCMAKE-static STATIC file1.c file1-long.c file2.c
 file2-long.c) ADD_LIBRARY(LearnCMAKE-shared SHARED file1.c file1-long.c
 file2.c file2-long.c)

 BUT
 suppose I decide to set   file1.c and file2.c   as some variable FILES and I
 want to use a preprocessor say DLONG
  could I do the following?

 set(FILES file1.c file2.c )
 SET_SOURCE_FILES_PROPERTIES(${FILES} PROPERTIES COMPILE_DEFINITIONS -DLONG)

Off course you can
BUT you cannot set the SAME PROPERTY twice for the same file.
So if you have to do so (compile fileX.c with BOTH -DINT and DLONG) then
you have to do some sort of loop with CMake or
populate 2 CMake variable

SRC_FILES_LONG
and
SRC_FILES_INT
with the list of appropriate file.

If you manipulate list have a look at the CMake builtin LIST command.



-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
___
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] 2.8.3 fortran regression or how to find configure problem

2010-11-08 Thread Allen D Byrne
This did work before the update - and reinstalling cmake 2.8.2 worked. BTW, I 
uninstalled and deleted the CMake Program Files folder to make sure there was 
no interference between versions. I now believe this to be a CMake 2.8.3 
problem. I'll be glad to help debug this if someone can provide suggestions. 
In the meantime I will be reinstalling 2.8.2 onto these machines. I guess it is 
an ifort-VS2008 issue on windows as linux boxes had no problems.

Allen

 When using ifort on windows I do the following
 
 
 a)  Make sure cmake is launched from inside a cmd prompt with the 
 ifort-vars.bat set so that the ifort compiler is on the path etc etc
 
 b)  always use nmake makefiles to do the initial configure and detection
 
 c)   once the project is ready to compile, you can edit the cmakecache 
 and insert the visual studio (2008) generator, then rerun cmake and 
 regenerate.
 
 Now you are a happy bunny and can compile using the IDE if desired - or skip 
 C and use nmake
 
 JB
 
 
 From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of 
 Allen D Byrne
 Sent: 08 November 2010 16:18
 To: cmake@cmake.org
 Subject: [CMake] 2.8.3 fortran regression or how to find configure problem
 
 
 Friday I upgraded my windows VS2008 and IVF111 machines to cmake 2.8.3. Over 
 the weekend they all failed to configure with fortran :
 
 -- Check for working Fortran compiler using: Visual Studio 9 2008 -- broken
 
 CMake Error at C:/Program Files/CMake 
 2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):
 
   The Fortran compiler ifort is not able to compile a simple test program.
 
 
 
   It fails with the following output:
 
 
 
Change Dir: 
  C:/autotest/HDF4CMake/tests/Monday-vs9/Build/CMakeFiles/CMakeTmp
 
 
 
 
 
 
 
   Run Build Command:c:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
 
   CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
 
 
 
 
 
 
 
   Microsoft (R) Visual Studio Version 9.0.21022.8.
 
 
 
   Copyright (C) Microsoft Corp.  All rights reserved.
 
 
 
 Include with this update was a 'MS Windows update' cycle as well. I will try 
 next to go back to 2.8.2 and try again.
 
 Also, I could use some help on finding the cause.
 
 Allen
 
___
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] Fwd: Submitting to CDash fails with error 417

2010-11-08 Thread Gerhard Gappmeier
Hi Julien

you were right. HTTP PUT didn't work.
The line 'server.reject-expect-100-with-417 = disable' did the trick.

No I can submit the results without error,
but I still cannot see the result on the website.
It still shows zero builds in all categories.
Any ideas what can be missing?

On Monday 08 November 2010 16:46:14 Julien Jomier wrote:
 Dear Gerhard,
 
 My guess is that your server is not supporting HTTP PUT protocol. I
 believe you have to explicitly enable the protocol for lighttpd.
 
 Let us know if that was the problem,
 Julien
 
  -- Forwarded message --
  From: *Gerhard Gappmeier* gerhard.gappme...@ascolab.com
  mailto:gerhard.gappme...@ascolab.com
  Date: Mon, Nov 8, 2010 at 10:14 AM
  Subject: [CMake] Submitting to CDash fails with error 417
  To: cmake@cmake.org mailto:cmake@cmake.org
  
  
  Hi all,
  
  I've setup CDash locally using lighttpd and created a test project
  helloworld.
  
  I configured CTestConfig.txt to find my local CDash.
  When I now run make Nightly submitting the results fails.
  
  Did I forget some configuration? Maybe authentification options?
  Or does CDash just not work with lighttpd?
  
  CTestConfig.cmake:
  ## This file should be placed in the root directory of your project.
  ## Then modify the CMakeLists.txt file in the root directory of your
  ## project to incorporate the testing dashboard.
  ## # The following are required to uses Dart and the Cdash dashboard
  ##   ENABLE_TESTING()
  ##   INCLUDE(CTest)
  set(CTEST_PROJECT_NAME helloworld)
  set(CTEST_NIGHTLY_START_TIME 00:00:00 EST)
  
  set(CTEST_DROP_METHOD http)
  set(CTEST_DROP_SITE localhost)
  set(CTEST_DROP_LOCATION /CDash/submit.php?project=helloworld)
  set(CTEST_DROP_SITE_CDASH TRUE)
  
  Output from make Nightly:
 Site: lt-gergap.ascolab.com http://lt-gergap.ascolab.com
 Build name: Linux-
  
  Determine Nightly Start Time
  
 Specified time: 00:00:00 EDT
  
  Create new tag: 20101108-0400 - Nightly
  
 Updating the repository: /home/gergap/work/helloworld/src
  
  Cannot find UpdateCommand  configuration key.
  Configure project
  
 Each . represents 1024 bytes of output
 
  . Size of output: 0K
  
  Build project
  
 Each symbol represents 1024 bytes of output.
  
  '!' represents an error and '*' a warning.
  
  . Size of output: 4K
 
 0 Compiler errors
 0 Compiler warnings
  
  Test project /home/gergap/work/helloworld/bldRelease
  
  Start 1: SimpleTest
  
  1/3 Test #1: SimpleTest ...   Passed0.00 sec
  
  Start 2: NegativeTest
  
  2/3 Test #2: NegativeTest .   Passed0.00 sec
  
  Start 3: DoubleNegativeTest
  
  3/3 Test #3: DoubleNegativeTest ...   Passed0.00 sec
  
  100% tests passed, 0 tests failed out of 3
  
  Total Test time (real) =   0.01 sec
  Performing coverage
  
Cannot find any coverage files. Ignoring Coverage request.
  
  Submit files (using http)
  
 Using HTTP submit method
 Drop site:http://localhost/CDash/submit.php?project=helloworld
  
 Error when uploading file:
  /home/gergap/work/helloworld/bldRelease/Testing/20101108-0400/Build.xml
  
 Error message was: The requested URL returned error: 417
 Problems when submitting via HTTP
  
  Errors while running CTest
  make[3]: *** [CMakeFiles/Nightly] Error 65
  make[2]: *** [CMakeFiles/Nightly.dir/all] Error 2
  make[1]: *** [CMakeFiles/Nightly.dir/rule] Error 2
  make: *** [Nightly] Error 2
  
  Complete source for testing is available here:
  git clone git://github.com/gergap/helloworld.git
  http://github.com/gergap/helloworld.git
  
  --
  mit freundlichen Grüßen / best regards
  
  *Gerhard Gappmeier*
  ascolab GmbH - automation systems communication laboratory
  Tel.: +49 9131 691 123
  Fax: +49 9131 691 128
  Web: http://www.ascolab.com
  GPG Key Id: 5AAC50C4
  GPG Fingerprint: 967A 15F1 2788 164D CCA3 6C46 07CD 6F82 5AAC 50C4
  
  --
  *ascolab GmbH*
  Geschäftsführer: Gerhard Gappmeier, Matthias Damm, Uwe Steinkrauß
  Sitz der Gesellschaft: Am Weichselgarten 7 . 91058 Erlangen . Germany
  Registernummer: HRB 9360
  Registergericht: Amtsgericht Fürth
  ___
  Powered by www.kitware.com http://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
  
  
  
  --
  Phone: 1-518-836-2174
  Ext: 304

-- 
mit freundlichen Grüßen / best regards

*Gerhard Gappmeier*
ascolab GmbH - automation systems communication laboratory
Tel.: +49 9131 691 123
Fax: +49 9131 691 128
Web: http://www.ascolab.com
GPG Key Id: 5AAC50C4
GPG Fingerprint: 967A 15F1 2788 164D CCA3 6C46 07CD 6F82 5AAC 50C4

--
*ascolab GmbH*
Geschäftsführer: Gerhard Gappmeier, Matthias Damm

Re: [CMake] 2.8.3 fortran regression or how to find configure problem

2010-11-08 Thread Bill Hoffman

On 11/8/2010 1:15 PM, Allen D Byrne wrote:

This did work before the update - and reinstalling cmake 2.8.2 worked. BTW, I 
uninstalled and deleted the CMake Program Files folder to make sure there was 
no interference between versions. I now believe this to be a CMake 2.8.3 
problem. I'll be glad to help debug this if someone can provide suggestions.
In the meantime I will be reinstalling 2.8.2 onto these machines. I guess it is 
an ifort-VS2008 issue on windows as linux boxes had no problems.



Can you try with --debug-trycompile, and then manually load the project 
in the /CMakeFiles/CMakeTmp directory, and see what is wrong with it?


-Bill
___
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] CMAKE way to get leaf of file path

2010-11-08 Thread Alexander Neundorf
On Monday 08 November 2010, Russell L. Carter wrote:
 On 11/07/2010 01:49 AM, Michael Hertling wrote:
  On 11/07/2010 02:07 AM, Russell L. Carter wrote:
  Hi there,
  Happy cmake user here.  I want to retrieve the leaf name of
  the directory property PARENT_DIRECTORY.  This is really
  a more general cmake question:  how do I most efficiently
  manipulate path components of the absolute pathnames that
  cmake uses and returns for many variables?
 
  In the current case, suppose I have
 
  /home/me/project/src/module/help
 
  how do I, in the best CMAKE WAY, extract the leaf, help?
 
  string(REGEXP) or something like that?
 
  I would love to be able to run a bash script on the full
  path and return just the leaf...  can I do that?
 
  You might try STRING(REGEX REPLACE ^.*/([^/]*)\$ \\1 LEAF ${PATH}),
  but also read about FILE(TO_CMAKE_PATH ...), FILE(TO_NATIVE_PATH ...)
  and GET_FILENAME_COMPONENT().

 That STRING(REGEX ...) got me closer to what I want, but I eventually
 settled on this approach (suggested by an email from several years
 ago:

 string(REPLACE / ; p2list ${path})
 list(REVERSE p2list)
 list(GET p2list 0 first)
 list(GET p2list 1 second)
 message(STATUS first: ${first} second: ${second})

 Now I can automatically generate unique names for tests by location in
 the hierarchy.  Awesome.


To get the last component of a path, use
get_filename_component(... NAME)
To get the parent directory, use
get_filename_component(... PATH)


When you need to generate a unique name from a path, you could use the 
STRING() command to replace all / with e.g. an underscore.

Alex
___
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] Merging gcc unit tests into a TI DSP crosscompiler build system

2010-11-08 Thread Alexander Neundorf
On Monday 08 November 2010, Wojciech Migda wrote:
 Hi,

 in our company we have a robust cmake-based build system which utilizes TI
 DSP cgtools compiler. Aside from that we are developing gcc-based unit
 tests (CxxTest coupled with CMake/CTest/CDash combo). We are considering
 merging the latter into the former, but we kind of don't even know how to
 put them together so that two C/C++ compilers can coexist in a single CMake
 build system. I tried inserting ADD_SUBDIRECTORY pointing to one of the
 test suites CMakeLists.txt file into the main CMakeLists.txt of the core
 build system but it blows everything up.

 Has anyone attempted this kind of configuration already ? Is it achievable
 with CMake at all ?

It is  probably possible, but it's a hack.
In general, you can only have one compiler per language in one cmake build 
tree.
Among other because the results of configure checks are compiler-specific, and 
they are saved in the global cache, so you can't have multiple correct 
values.

What can be done, is to change the CMAKE_C_COMPILER etc. variables in a 
subdir, then those changed settings will be used there.
If you use additional stuff like find_package() etc. you must be sure you know 
what you are doing, so that it doesn't conflict with other (global) cache 
variables in your project.

Alex
___
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] CMAKE way to get leaf of file path

2010-11-08 Thread Russell L. Carter
On 11/08/2010 12:59 PM, Alexander Neundorf wrote:

 
 To get the last component of a path, use
 get_filename_component(... NAME)
 To get the parent directory, use
 get_filename_component(... PATH)
 
 
 When you need to generate a unique name from a path, you could use the 
 STRING() command to replace all / with e.g. an underscore.


Thanks... there's more than one way to do it.  I've got this
integrated into my test generation macros and once again cmake
makes abstracting build structure just about effortless.

A most excellent tool.

Cheers,
Russell


 
 Alex

___
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] 2.8.3 fortran regression or how to find configure problem

2010-11-08 Thread Allen D Byrne
Bill,
   The projects do differ in the VFFortranCompilerTool option of the project 
file
DEBUG:
AdditionalOptions= /W1 /libs:dll /threads /dbglibs instead of 
AdditionalOptions= /dbglibs
RELEASE:
AdditionalOptions= /W1 /libs:dll /threads instead of 
and
DEBUG:
RELEASE:
SuppressStartupBanner=true Preprocess=preprocessYes instead of 

Taking out the new AdditionalOptions= /W1 /libs:dll /threads allowed the 
project to succeed.

Allen
 On 11/8/2010 1:15 PM, Allen D Byrne wrote:
  This did work before the update - and reinstalling cmake 2.8.2 worked. BTW, 
  I uninstalled and deleted the CMake Program Files folder to make sure there 
  was no interference between versions. I now believe this to be a CMake 
  2.8.3 problem. I'll be glad to help debug this if someone can provide 
  suggestions.
  In the meantime I will be reinstalling 2.8.2 onto these machines. I guess 
  it is an ifort-VS2008 issue on windows as linux boxes had no problems.
 
 
 Can you try with --debug-trycompile, and then manually load the project 
 in the /CMakeFiles/CMakeTmp directory, and see what is wrong with it?
 
 -Bill
 
___
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] Setting up CMake for Windows projects

2010-11-08 Thread Stormwind Developer

Greetings,

I am a complete beginner to CMake, so my problem might be trivial. 
Nevertheless I did not find a solution yet.


I am running Windows XP in a virtual machine on a linux host system. 
Having CMake 2.6.4 installed I tried to run CMakeLists.txt from a 
project I downloaded.


My problem is, that CMake fails with message logs like this one:
Check for working C compiler: E:/Programme/Microsoft Visual Studio 
10.0/VC/bin/cl.exe
Check for working C compiler: E:/Programme/Microsoft Visual Studio 
10.0/VC/bin/cl.exe -- broken
CMake Error at E:/Programme/CMake 
2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):
  The C compiler E:/Programme/Microsoft Visual Studio 
10.0/VC/bin/cl.exe is

  not able to compile a simple test program.

  It fails with the following output:

   Change Dir: F:/bin/mygui/CMakeFiles/CMakeTmp



  Run Build Command:E:\PROGRA~1\CMAKE2~1.6\bin\cmake.exe
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:12 (project)


Configuring incomplete, errors occurred!

I use Visual Studio 2010 for my project, so I specified the path to 
cl.exe as shown in the log. As value for CMAKE_MAKE_PROGRAM I used the 
path to cmake.exe


Can anybody explain to me how to understand the log? Of course I checked 
all paths and F:/bin/mygui/CMakeFiles/CMakeTmp does exist. I don't know 
how to continue.


Regards

Michael
___
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] Setting up CMake for Windows projects

2010-11-08 Thread John Drescher
On Mon, Nov 8, 2010 at 4:09 PM, Stormwind Developer
stormwind@googlemail.com wrote:
 Greetings,

 I am a complete beginner to CMake, so my problem might be trivial.
 Nevertheless I did not find a solution yet.

 I am running Windows XP in a virtual machine on a linux host system. Having
 CMake 2.6.4 installed I tried to run CMakeLists.txt from a project I
 downloaded.

 My problem is, that CMake fails with message logs like this one:
 Check for working C compiler: E:/Programme/Microsoft Visual Studio
 10.0/VC/bin/cl.exe
 Check for working C compiler: E:/Programme/Microsoft Visual Studio
 10.0/VC/bin/cl.exe -- broken
 CMake Error at E:/Programme/CMake
 2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):
   The C compiler E:/Programme/Microsoft Visual Studio 10.0/VC/bin/cl.exe
 is
   not able to compile a simple test program.

   It fails with the following output:

    Change Dir: F:/bin/mygui/CMakeFiles/CMakeTmp



   Run Build Command:E:\PROGRA~1\CMAKE2~1.6\bin\cmake.exe
   CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec





   CMake will not be able to correctly generate this project.
 Call Stack (most recent call first):
   CMakeLists.txt:12 (project)


 Configuring incomplete, errors occurred!

 I use Visual Studio 2010 for my project, so I specified the path to cl.exe
 as shown in the log. As value for CMAKE_MAKE_PROGRAM I used the path to
 cmake.exe

 Can anybody explain to me how to understand the log? Of course I checked all
 paths and F:/bin/mygui/CMakeFiles/CMakeTmp does exist. I don't know how to
 continue.

 Regards

 Michael


You need to use CMake 2.8.X with Visual Studio 2010.

John
___
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] make test missing

2010-11-08 Thread Jochen Issing
Hi list,

I tried to add ctest to my project and did this by adding ENABLE_TESTING() and 
several ADD_TEST(...) to my CMakeLists.txt file.
The tests are run on executables, which are built inside a dedicated test 
directory in my project root and the execs show up in my Makefile.
After reading through some docs, I am told to call make test after building. 
However, no target named 'test' is available.

Here my question: Does my directory 'test' interfere with the 'test' rule or do 
I have to install the executables before testing or do I still miss something? 

Anyhow, 'ctest -D Experimental' seems to do something :/

Also, I am not sure if I need to setup a Dashboard-Server to use testing at 
all. I suppose it's possible without a dashboard, but don't know how.
Thanks in advance!
Cheers,

- jochen
gpg: 1024D/013400C7









___
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] help with learning add_library

2010-11-08 Thread luxInteg
On Monday 08 November 2010 18:10:01 Eric Noulard wrote:
 2010/11/8 luxInteg lux-in...@btconnect.com:
  On Saturday 06 November 2010 23:08:29 Eric Noulard wrote:
  I think you cannot use **the same** file properties on a source file
  and expect CMake will compile the file twice for the same target.
  If you want to compile the same source file twice with different compile
  flags **FOR THE SAME TARGET** you have to copy this file
  
  
  SET_SOURCE_FILES_PROPERTIES(file1-long.c PROPERTIES
  COMPILE_DEFINITIONS -DLONG)
  
  
  ** same for file 2 **
  ADD_LIBRARY(LearnCMAKE-static STATIC file1.c file1-long.c file2.c
  file2-long.c) ADD_LIBRARY(LearnCMAKE-shared SHARED file1.c file1-long.c
  file2.c file2-long.c)
  
  BUT
  suppose I decide to set   file1.c and file2.c   as some variable FILES
  and I want to use a preprocessor say DLONG
   could I do the following?
  
  set(FILES file1.c file2.c )
  SET_SOURCE_FILES_PROPERTIES(${FILES} PROPERTIES COMPILE_DEFINITIONS
  -DLONG)
 
 Off course you can
thanks, it worked a treat.
 BUT you cannot set the SAME PROPERTY twice for the same file.
 So if you have to do so (compile fileX.c with BOTH -DINT and DLONG) then
 you have to do some sort of loop with CMake or
 populate 2 CMake variable
 
 SRC_FILES_LONG
 and
 SRC_FILES_INT
 with the list of appropriate file.
 
 If you manipulate list have a look at the CMake builtin LIST command.

I   had a look at lists  on this page  
http://www.cmake.org/Wiki/CMakeMacroListOperations

I have also  came across this problem:-  I have  some files say 
file1.c
file2.c
file3.c
file4.c

to be compiled into a  library

before archiving 
file1.c  is compiled into file1.o
but file2.c  and file3.c  are compiled int file2file3.o  then 
file4.c  is compiled into  file4.o


I  had a cursory look at list an came up with this   embryonic/rudimentary  
'half-attempt'
But I am stuck   on   the bracketed line


---
set(RUN oddone.o  file2.c file3.c )
LIST CONTAINS(file2.c file3.c  ${RUN})
IF (contains )
  (--compile  file2.c and file3.c into  oddone.o  )
endif (contains)
-
advice on whether lists of othrwise is appropriate  would be  appreciated.
___
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] Setting up CMake for Windows projects

2010-11-08 Thread Rolf Eike Beer
Am Montag, 8. November 2010 schrieb Stormwind Developer:
 Greetings,
 
 I am a complete beginner to CMake, so my problem might be trivial.
 Nevertheless I did not find a solution yet.
 
 I am running Windows XP in a virtual machine on a linux host system.
 Having CMake 2.6.4 installed I tried to run CMakeLists.txt from a
 project I downloaded.
 
 My problem is, that CMake fails with message logs like this one:
 Check for working C compiler: E:/Programme/Microsoft Visual Studio
 10.0/VC/bin/cl.exe
 Check for working C compiler: E:/Programme/Microsoft Visual Studio
 10.0/VC/bin/cl.exe -- broken
 CMake Error at E:/Programme/CMake
 2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):
The C compiler E:/Programme/Microsoft Visual Studio
 10.0/VC/bin/cl.exe is
not able to compile a simple test program.

If you want to build a command line build (i.e. use MSVC only as a compiler, 
not as an IDE) you need to go to Start - Programs - Microsoft Visual Studio 
- Tools - x86 command prompt (or x64 if you want a 64 bit binary). From that 
shell you can call CMake like this and you will get a NMake makefile for your 
project.

If you want to use the MSVC IDE you need to pass -G Visual Studio 2010 (or 
something similar, it will complain if I'm wrong) to the CMake command line on 
the first run. And you need to upgrade to 2.8, preferrably 2.8.3.

Eike


signature.asc
Description: This is a digitally signed message part.
___
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] Setting up CMake for Windows projects

2010-11-08 Thread Michael Jackson


On Nov 8, 2010, at 4:39 PM, Rolf Eike Beer wrote:


Am Montag, 8. November 2010 schrieb Stormwind Developer:

Greetings,

I am a complete beginner to CMake, so my problem might be trivial.
Nevertheless I did not find a solution yet.

I am running Windows XP in a virtual machine on a linux host system.
Having CMake 2.6.4 installed I tried to run CMakeLists.txt from a
project I downloaded.

My problem is, that CMake fails with message logs like this one:
Check for working C compiler: E:/Programme/Microsoft Visual Studio
10.0/VC/bin/cl.exe
Check for working C compiler: E:/Programme/Microsoft Visual Studio
10.0/VC/bin/cl.exe -- broken
CMake Error at E:/Programme/CMake
2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):
  The C compiler E:/Programme/Microsoft Visual Studio
10.0/VC/bin/cl.exe is
  not able to compile a simple test program.


If you want to build a command line build (i.e. use MSVC only as a  
compiler,
not as an IDE) you need to go to Start - Programs - Microsoft  
Visual Studio
- Tools - x86 command prompt (or x64 if you want a 64 bit binary).  
From that
shell you can call CMake like this and you will get a NMake makefile  
for your

project.


You need to start ANYTHING having to do with Visual Studio and CMake  
from this type of command prompt.


Note 1: You MUST have CMake 2.8.3 installed to use Visual Studio 2010.
Note 2: While in the command prompt and assuming cmake is located on  
your PATH variable you can launch the CMake GUI like this: cmake- 
gui.exe  and the CMake-Gui application will inherit all the  
environment variables that the Visual Studio Command prompt sets up.
Note 3: You can also run cmake from the command like like stated above  
giving cmake the -G argument to generate the type of projects you want.


 Type cmake --help for a list of those generators.

What I ended up doing what creating a new Command Prompt shortcut on  
my desktop, copied the contents from the bat file that the Visual  
Studio Command Prompt would have normally read and then injected some  
more paths. I'll append it at the end of this email. Note that this is  
for Visual Studio 2008. Yours would differ based on VS 2010.


This allows me to launch either a 32 bit project or a 64 bit project  
based on each batch file. I have one for each.


Hope that helps
Mike Jackson

@SET VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 9.0
@SET VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
@SET FrameworkDir=C:\Windows\Microsoft.NET\Framework64
@SET FrameworkVersion=v2.0.50727
@SET Framework35Version=v3.5
@if %VSINSTALLDIR%== goto error_no_VSINSTALLDIR
@if %VCINSTALLDIR%== goto error_no_VCINSTALLDIR

@echo Setting environment for using Microsoft Visual Studio 2008 Beta2  
x64 tools.


@call :GetWindowsSdkDir

@if not %WindowsSdkDir% ==  (
	set PATH=%WindowsSdkDir%bin\x64;%WindowsSdkDir%bin 
\win64\x64;%WindowsSdkDir%bin;%PATH%

set INCLUDE=%WindowsSdkDir%include;%INCLUDE%
set LIB=%WindowsSdkDir%lib\x64;%LIB%
)

@set PATH=%VCINSTALLDIR%\BIN\amd64;%FrameworkDir%\%Framework35Version%; 
%FrameworkDir%\%Framework35Version%\Microsoft .NET Framework 3.5 (Pre- 
Release Version);%FrameworkDir%\%FrameworkVersion%;%VCINSTALLDIR% 
\VCPackages;%VSINSTALLDIR%\Common7\IDE;%VSINSTALLDIR%\Common7\Tools; 
%VSINSTALLDIR%\Common7\Tools\bin;%PATH%
@set INCLUDE=%VCINSTALLDIR%\ATLMFC\INCLUDE;%VCINSTALLDIR%\INCLUDE; 
%INCLUDE%

@set LIB=%VCINSTALLDIR%\ATLMFC\LIB\amd64;%VCINSTALLDIR%\LIB\amd64;%LIB%

@set LIBPATH=%FrameworkDir%\%Framework35Version%;%FrameworkDir%\ 
%FrameworkVersion%;%FrameworkDir%\%Framework35Version%;%FrameworkDir%\ 
%FrameworkVersion%;%VCINSTALLDIR%\ATLMFC\LIB\amd64;%VCINSTALLDIR%\LIB 
\amd64;%LIBPATH%



@set ARCH_TYPE=x64
@set BOOST_ROOT=C:\Developer\%ARCH_TYPE%\MXABoost-1.36
@set EXPAT_INSTALL=C:\Developer\%ARCH_TYPE%\expat
@set HDF5_INSTALL=C:\Developer\%ARCH_TYPE%\hdf5-169
@set ITK_DIR=C:\Users\mjackson\Workspace\InsightToolkit-3.14.0\ 
%ARCH_TYPE%

@set MXADATAMODEL_INSTALL=C:\Developer\%ARCH_TYPE%\MXADataModel
@set QTDIR=C:\Developer\%ARCH_TYPE%\Qt-4.6.1
@set TIFF_INSTALL=C:\Developer\%ARCH_TYPE%\tiff
@set BJAM_INSTALL=C:\Applications\bjam

@SET PATH=%PATH%;C:\Applications\CMake-2.8.2\bin;%BJAM_INSTALL%

@echo BOOST_ROOT=%BOOST_ROOT%
@echo EXPAT_INSTALL=%EXPAT_INSTALL%
@echo HDF5_INSTALL=%HDF5_INSTALL%
@echo ITK_DIR=%ITK_DIR%
@echo MXADATAMODEL_INSTALL=%MXADATAMODEL_INSTALL%
@echo QTDIR=%QTDIR%
@echo TIFF_INSTALL=%TIFF_INSTALL%
@echo BJAM_INSTALL=%BJAM_INSTALL%


@goto end

:GetWindowsSdkDir
@call :GetWindowsSdkDirHelper HKLM  nul 21
@if errorlevel 1 call :GetWindowsSdkDirHelper HKCU  nul 21
@if errorlevel 1 echo WindowsSdkDir not found
@exit /B 0

:GetWindowsSdkDirHelper
@SET WindowsSdkDir=
@for /F tokens=1,2* %%i in ('reg query %1\SOFTWARE\Microsoft 
\Microsoft SDKs\Windows /v CurrentInstallFolder') DO (

if %%i==CurrentInstallFolder (
SET WindowsSdkDir=%%k
)
)
@if %WindowsSdkDir%== exit /B 1
@exit /B 0


Re: [CMake] make test missing

2010-11-08 Thread Michael Hertling
On 11/08/2010 10:03 PM, Jochen Issing wrote:
 Hi list,
 
 I tried to add ctest to my project and did this by adding ENABLE_TESTING() 
 and several ADD_TEST(...) to my CMakeLists.txt file.
 The tests are run on executables, which are built inside a dedicated test 
 directory in my project root and the execs show up in my Makefile.
 After reading through some docs, I am told to call make test after building. 
 However, no target named 'test' is available.

I.e. it doesn't show up in the listing of make help?

 Here my question: Does my directory 'test' interfere with the 'test' rule or 
 do I have to install the executables before testing or do I still miss 
 something? 

On *nix, I can see the following CMakeLists.txt work:

CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
PROJECT(TEST C)
ENABLE_TESTING()
FILE(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/test ${CMAKE_BINARY_DIR}/test)
FILE(WRITE ${CMAKE_BINARY_DIR}/main.c int main(void){return 0;}\n)
ADD_EXECUTABLE(main main.c)
SET_TARGET_PROPERTIES(
main
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/test
)
ADD_TEST(NAME main COMMAND main)

The output of make test - without installation - is:

Running tests...
Test project /home/hertling/work/cmake/issing/obj
Start 1: main
1/1 Test #1: main .   Passed0.00 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.11 sec

So, I'd conclude the test directories' presence doesn't matter,
nor does the fact if an installation has already been performed.

Maybe, you could post your CMakeLists.txt for further inspection.

Regards,

Michael

 Anyhow, 'ctest -D Experimental' seems to do something :/
 
 Also, I am not sure if I need to setup a Dashboard-Server to use testing at 
 all. I suppose it's possible without a dashboard, but don't know how.
 Thanks in advance!
 Cheers,
 
 - jochen
 gpg: 1024D/013400C7
___
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] make test missing

2010-11-08 Thread Alan W. Irwin

On 2010-11-09 02:52+0100 Michael Hertling wrote:


On 11/08/2010 10:03 PM, Jochen Issing wrote:

Hi list,

I tried to add ctest to my project and did this by adding ENABLE_TESTING() and 
several ADD_TEST(...) to my CMakeLists.txt file.
The tests are run on executables, which are built inside a dedicated test 
directory in my project root and the execs show up in my Makefile.
After reading through some docs, I am told to call make test after building. 
However, no target named 'test' is available.


I.e. it doesn't show up in the listing of make help?


Here my question: Does my directory 'test' interfere with the 'test' rule or do 
I have to install the executables before testing or do I still miss something?


On *nix, I can see the following CMakeLists.txt work:

CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
PROJECT(TEST C)
ENABLE_TESTING()
FILE(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/test ${CMAKE_BINARY_DIR}/test)
FILE(WRITE ${CMAKE_BINARY_DIR}/main.c int main(void){return 0;}\n)
ADD_EXECUTABLE(main main.c)
SET_TARGET_PROPERTIES(
   main
   PROPERTIES
   RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/test
)
ADD_TEST(NAME main COMMAND main)

The output of make test - without installation - is:

Running tests...
Test project /home/hertling/work/cmake/issing/obj
   Start 1: main
1/1 Test #1: main .   Passed0.00 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.11 sec

So, I'd conclude the test directories' presence doesn't matter,
nor does the fact if an installation has already been performed.


In the past this mattered a lot so the PLplot project had to rename
our test source tree directory to plplot_test to avoid the clash with
the name of the test target.

It is possible your example above is not complicated
enough to trigger the clash.  For example, your test
subdirectories are just created, but you do not have an
add_subdirectory(test) command to actually run cmake within that
test subdirectory.

So I would suggest to the OP that they do rename their test directory
to something else because I am pretty sure that will solve the issue.
Until PLplot did that (for a much earlier version of CMake) make
test failed to work for us.

Alan





Maybe, you could post your CMakeLists.txt for further inspection.

Regards,

Michael


Anyhow, 'ctest -D Experimental' seems to do something :/

Also, I am not sure if I need to setup a Dashboard-Server to use testing at 
all. I suppose it's possible without a dashboard, but don't know how.
Thanks in advance!
Cheers,

- jochen
gpg: 1024D/013400C7

___
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



__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__

Linux-powered Science
__
___
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] help with learning add_library

2010-11-08 Thread luxInteg
On Monday 08 November 2010 22:21:54 luxInteg wrote:

 ---
 set(RUN oddone.o  file2.c file3.c )
 LIST CONTAINS(file2.c file3.c  ${RUN})
 IF (contains )
   (--compile  file2.c and file3.c into  oddone.o  )
 endif (contains)
 -
 advice on whether lists of othrwise is appropriate  would be  appreciated.

problem fixed
one file calls the other
___
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] help with learning add_library

2010-11-08 Thread Eric Noulard
2010/11/8 luxInteg lux-in...@btconnect.com:

 If you manipulate list have a look at the CMake builtin LIST command.

 I   had a look at lists  on this page
 http://www.cmake.org/Wiki/CMakeMacroListOperations

You should reallty use **builtin** list
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:list
and not possibly OBSOLETE MACRO.

unless you really have to use a CMake version which does not support list

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
___
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-commits] CMake branch, next, updated. v2.8.3-551-g20ae1b5

2010-11-08 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  20ae1b5b8908f183b389361e76efc693af9af03e (commit)
   via  680ca4baab85cbc1be98bcfd81b7e4402ffa8d84 (commit)
  from  25be1b070297dea7def03bf95009c752426c54ab (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=20ae1b5b8908f183b389361e76efc693af9af03e
commit 20ae1b5b8908f183b389361e76efc693af9af03e
Merge: 25be1b0 680ca4b
Author: David Cole david.c...@kitware.com
AuthorDate: Mon Nov 8 09:44:24 2010 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Mon Nov 8 09:44:24 2010 -0500

Merge topic 'add-ProcessorCount-module' into next

680ca4b Add ProcessorCount support for QNX via pidin. (#11302)


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=680ca4baab85cbc1be98bcfd81b7e4402ffa8d84
commit 680ca4baab85cbc1be98bcfd81b7e4402ffa8d84
Author: David Cole david.c...@kitware.com
AuthorDate: Mon Nov 8 09:37:04 2010 -0500
Commit: David Cole david.c...@kitware.com
CommitDate: Mon Nov 8 09:37:04 2010 -0500

Add ProcessorCount support for QNX via pidin. (#11302)

Thanks to Rolf Eike Beer e...@sf-mail.de for the code snippet
parsing the pidin output.

diff --git a/Modules/ProcessorCount.cmake b/Modules/ProcessorCount.cmake
index 5ccfbff..5c38267 100644
--- a/Modules/ProcessorCount.cmake
+++ b/Modules/ProcessorCount.cmake
@@ -42,7 +42,7 @@ function(ProcessorCount var)
   message(ProcessorCount: using sysctl '${ProcessorCount_cmd_sysctl}')
 endif()
   else()
-# Linux (and other systems with getconf):
+# Linux (systems with getconf):
 find_program(ProcessorCount_cmd_getconf getconf)
 if(ProcessorCount_cmd_getconf)
   execute_process(COMMAND ${ProcessorCount_cmd_getconf} _NPROCESSORS_ONLN
@@ -50,9 +50,22 @@ function(ProcessorCount var)
 OUTPUT_VARIABLE count)
   message(ProcessorCount: using getconf '${ProcessorCount_cmd_getconf}')
 endif()
+
+if(NOT count)
+  # QNX (systems with pidin):
+  find_program(ProcessorCount_cmd_pidin pidin)
+  if(ProcessorCount_cmd_pidin)
+execute_process(COMMAND ${ProcessorCount_cmd_pidin} info
+  OUTPUT_STRIP_TRAILING_WHITESPACE
+  OUTPUT_VARIABLE pidin_output)
+string(REGEX MATCHALL Processor[0-9]+:  procs ${pidin_output})
+list(LENGTH procs count)
+message(ProcessorCount: using pidin '${ProcessorCount_cmd_pidin}')
+  endif()
+endif()
   endif()
 
-  # Execute this code when there is no 'sysctl' or 'getconf' or
+  # Execute this code when there is no 'sysctl' or 'getconf' or 'pidin' or
   # when previously executed methods return empty output:
   #
   if(NOT count)
@@ -65,5 +78,12 @@ function(ProcessorCount var)
 endif()
   endif()
 
+  # Ensure an integer return (avoid inadvertently returning an empty string
+  # or an error string)... If it's not a decimal integer, return 0:
+  #
+  if(NOT count MATCHES ^[0-9]+$)
+set(count 0)
+  endif()
+
   set(${var} ${count} PARENT_SCOPE)
 endfunction()
diff --git a/Tests/CMakeTests/ProcessorCountTest.cmake.in 
b/Tests/CMakeTests/ProcessorCountTest.cmake.in
index 0815fd8..ac7a1da 100644
--- a/Tests/CMakeTests/ProcessorCountTest.cmake.in
+++ b/Tests/CMakeTests/ProcessorCountTest.cmake.in
@@ -3,7 +3,11 @@ include(ProcessorCount)
 ProcessorCount(processor_count)
 message(processor_count='${processor_count}')
 
+if(NOT processor_count MATCHES ^[0-9]+$)
+  message(FATAL_ERROR ProcessorCount function returned a non-integer)
+endif()
+
 if(processor_count EQUAL 0)
   message(FATAL_ERROR could not determine number of processors
-- Additional code needed in ProcessorCount.cmake?)
+- Additional code for this platform needed in ProcessorCount.cmake?)
 endif()

---

Summary of changes:
 Modules/ProcessorCount.cmake |   24 ++--
 Tests/CMakeTests/ProcessorCountTest.cmake.in |6 +-
 2 files changed, 27 insertions(+), 3 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, next, updated. v2.8.3-555-g9c6907c

2010-11-08 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  9c6907c1d921cfd1f87cf0ece3fc85a901ef27d1 (commit)
   via  da778eeb4b095e0d09f60e00e55c9e6ec43b7d7a (commit)
   via  d95017deec954ad81253c9d545eaeb323c52ac0e (commit)
   via  c5a47ad148a7a470eaebd350917ea0e036e77ac9 (commit)
  from  20ae1b5b8908f183b389361e76efc693af9af03e (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=9c6907c1d921cfd1f87cf0ece3fc85a901ef27d1
commit 9c6907c1d921cfd1f87cf0ece3fc85a901ef27d1
Merge: 20ae1b5 da778ee
Author: Brad King brad.k...@kitware.com
AuthorDate: Mon Nov 8 11:00:55 2010 -0500
Commit: Brad King brad.k...@kitware.com
CommitDate: Mon Nov 8 11:00:55 2010 -0500

Merge branch 'master' into next


---

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


[Cmake-commits] CMake branch, next, updated. v2.8.3-557-g78c1abd

2010-11-08 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  78c1abde46641d7a02e19bd8b5f1e72f295dbf5d (commit)
   via  20ceccc4f28474c89af5797640852f966b731be4 (commit)
  from  9c6907c1d921cfd1f87cf0ece3fc85a901ef27d1 (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=78c1abde46641d7a02e19bd8b5f1e72f295dbf5d
commit 78c1abde46641d7a02e19bd8b5f1e72f295dbf5d
Merge: 9c6907c 20ceccc
Author: Brad King brad.k...@kitware.com
AuthorDate: Mon Nov 8 11:23:15 2010 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Mon Nov 8 11:23:15 2010 -0500

Merge topic 'FindPerlLibs-mac' into next

20ceccc FindPerlLibs: Fix for Mac locally applied patches


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=20ceccc4f28474c89af5797640852f966b731be4
commit 20ceccc4f28474c89af5797640852f966b731be4
Author: Dave Abrahams d...@boostpro.com
AuthorDate: Mon Nov 8 11:06:56 2010 -0500
Commit: Brad King brad.k...@kitware.com
CommitDate: Mon Nov 8 11:09:41 2010 -0500

FindPerlLibs: Fix for Mac locally applied patches

Previously FindPerlLibs did not work with the Mac stock Perl because it
includes patches.  From perl -V:

  Locally applied patches:
/Library/Perl/Updates/version comes before system perl directories
installprivlib and installarchlib points to the Updates directory

Adjust paths accordingly.

diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake
index 4cb0263..0d620e3 100644
--- a/Modules/FindPerlLibs.cmake
+++ b/Modules/FindPerlLibs.cmake
@@ -147,6 +147,32 @@ if (PERL_EXECUTABLE)
 string(REGEX REPLACE install[a-z]+='([^']+)'.* \\1 PERL_VENDORLIB 
${PERL_VENDORLIB_OUTPUT_VARIABLE})
   endif (NOT PERL_VENDORLIB_RESULT_VARIABLE)
 
+  macro(perl_adjust_darwin_lib_variable varname)
+string( TOUPPER PERL_${varname} FINDPERL_VARNAME )
+string( TOLOWER install${varname} PERL_VARNAME )
+
+if (NOT PERL_MINUSV_OUTPUT_VARIABLE)
+  execute_process(
+COMMAND
+${PERL_EXECUTABLE} -V
+OUTPUT_VARIABLE
+PERL_MINUSV_OUTPUT_VARIABLE
+RESULT_VARIABLE
+PERL_MINUSV_RESULT_VARIABLE
+)
+endif()
+
+if (NOT PERL_MINUSV_RESULT_VARIABLE)
+  string(REGEX MATCH (${PERL_VARNAME}.*points? to the Updates directory)
+PERL_NEEDS_ADJUSTMENT ${PERL_MINUSV_OUTPUT_VARIABLE})
+
+  if (PERL_NEEDS_ADJUSTMENT)
+string(REGEX REPLACE (.*)/Updates/ /System/\\1/ 
${FINDPERL_VARNAME} ${${FINDPERL_VARNAME}})
+  endif (PERL_NEEDS_ADJUSTMENT)
+
+endif (NOT PERL_MINUSV_RESULT_VARIABLE)
+  endmacro()
+
   ### PERL_ARCHLIB
   execute_process(
 COMMAND
@@ -158,6 +184,7 @@ if (PERL_EXECUTABLE)
   )
   if (NOT PERL_ARCHLIB_RESULT_VARIABLE)
 string(REGEX REPLACE install[a-z]+='([^']+)'.* \\1 PERL_ARCHLIB 
${PERL_ARCHLIB_OUTPUT_VARIABLE})
+perl_adjust_darwin_lib_variable( ARCHLIB )
   endif (NOT PERL_ARCHLIB_RESULT_VARIABLE)
 
   ### PERL_PRIVLIB
@@ -171,6 +198,7 @@ if (PERL_EXECUTABLE)
   )
   if (NOT PERL_PRIVLIB_RESULT_VARIABLE)
 string(REGEX REPLACE install[a-z]+='([^']+)'.* \\1 PERL_PRIVLIB 
${PERL_PRIVLIB_OUTPUT_VARIABLE})
+perl_adjust_darwin_lib_variable( PRIVLIB )
   endif (NOT PERL_PRIVLIB_RESULT_VARIABLE)
 
 

---

Summary of changes:
 Modules/FindPerlLibs.cmake |   28 
 1 files changed, 28 insertions(+), 0 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, next, updated. v2.8.3-559-g9d841b5

2010-11-08 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  9d841b5b8b47c378ee49eec0ce41e503d9cd05b3 (commit)
   via  1e26f7c68b9cc1bbaf173cb6a7c6137bb2d829f8 (commit)
  from  78c1abde46641d7a02e19bd8b5f1e72f295dbf5d (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=9d841b5b8b47c378ee49eec0ce41e503d9cd05b3
commit 9d841b5b8b47c378ee49eec0ce41e503d9cd05b3
Merge: 78c1abd 1e26f7c
Author: David Cole david.c...@kitware.com
AuthorDate: Mon Nov 8 11:47:30 2010 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Mon Nov 8 11:47:30 2010 -0500

Merge topic 'suppress-dashboard-warnings' into next

1e26f7c Suppress loop was vectorized warnings.


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1e26f7c68b9cc1bbaf173cb6a7c6137bb2d829f8
commit 1e26f7c68b9cc1bbaf173cb6a7c6137bb2d829f8
Author: David Cole david.c...@kitware.com
AuthorDate: Mon Nov 8 11:29:28 2010 -0500
Commit: David Cole david.c...@kitware.com
CommitDate: Mon Nov 8 11:30:19 2010 -0500

Suppress loop was vectorized warnings.

Eliminate appearance on dashboard results from Intel compilers.

diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in
index d5789ed..882fa4c 100644
--- a/CTestCustom.cmake.in
+++ b/CTestCustom.cmake.in
@@ -24,6 +24,7 @@ SET(CTEST_CUSTOM_WARNING_EXCEPTION
   is not used for resolving any symbol
   Clock skew detected
   remark\\(1209
+  remark: .*LOOP WAS VECTORIZED
   LINK : warning LNK4089: all references to.*ADVAPI32.dll.*discarded by 
/OPT:REF
   LINK : warning LNK4089: all references to.*USER32.dll.*discarded by 
/OPT:REF
   Warning: library was too large for page size.*

---

Summary of changes:
 CTestCustom.cmake.in |1 +
 1 files changed, 1 insertions(+), 0 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-7-gbbb3d81

2010-11-08 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  bbb3d81d383737f4111f7303b36c23c537aaf17a (commit)
  from  da778eeb4b095e0d09f60e00e55c9e6ec43b7d7a (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=bbb3d81d383737f4111f7303b36c23c537aaf17a
commit bbb3d81d383737f4111f7303b36c23c537aaf17a
Author: KWSys Robot kwro...@kitware.com
AuthorDate: Tue Nov 9 00:01:04 2010 -0500
Commit: KWSys Robot kwro...@kitware.com
CommitDate: Tue Nov 9 00:10:02 2010 -0500

KWSys Nightly Date Stamp

diff --git a/Source/kwsys/kwsysDateStamp.cmake 
b/Source/kwsys/kwsysDateStamp.cmake
index 69c7cb8..5ff8eec 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 11)
 
 # KWSys version date day component.  Format is DD.
-SET(KWSYS_DATE_STAMP_DAY   08)
+SET(KWSYS_DATE_STAMP_DAY   09)

---

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