[cmake-developers] [CMake 0011910]: FindOpenMP.cmake requires both C and CXX

2011-03-01 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=11910 == Reported By:Raymond Wan Assigned To:

[cmake-developers] [CMake 0011913]: Cmake default settings for CXX compiler causes out of heap space errors in large and complex projects for VS2010

2011-03-01 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://cmake.org/Bug/view.php?id=11913 == Reported By:Brendan Wilson Assigned To:

Re: [cmake-developers] [CMake] Fortran good and bad

2011-03-01 Thread Bill Hoffman
On 3/1/2011 3:05 AM, Biddiscombe, John A. wrote: should I be looking at cmVisualStudio10TargetGenerator, or cmGlobalVisualStudio10Generator/cmGlobalVisualStudio10Win64Generator or one of the base classes? I didn't get any reply to this, so I would like to ask instead There is a VisualStudio

Re: [cmake-developers] How to deal with assembler files

2011-03-01 Thread Brad King
On 03/01/2011 03:44 PM, Alexander Neundorf wrote: The SunPro tests both failed: http://www.cdash.org/CDash/testDetails.php?test=85204365build=884706 http://www.cdash.org/CDash/testDetails.php?test=85247010build=884931 The assembler file was generated in both cases, but could not be linked.

Re: [cmake-developers] How to deal with assembler files

2011-03-01 Thread Alexander Neundorf
On Tuesday 01 March 2011, Brad King wrote: On 03/01/2011 03:44 PM, Alexander Neundorf wrote: The SunPro tests both failed: http://www.cdash.org/CDash/testDetails.php?test=85204365build=884706 http://www.cdash.org/CDash/testDetails.php?test=85247010build=884931 The assembler file was

Re: [cmake-developers] How to deal with assembler files

2011-03-01 Thread Bill Hoffman
On 3/1/2011 4:47 PM, Brad King wrote: On 03/01/2011 04:40 PM, Alexander Neundorf wrote: Do you think when enabling the C compiler as ASM compiler it should also check for $ENV{CFLAGS} ? Or should I added $ENV{ASMFLAGS} ? Often the C compiler is the C++ compiler too but we still have a

Re: [CMake] Fortran good and bad

2011-03-01 Thread Biddiscombe, John A.
should I be looking at cmVisualStudio10TargetGenerator, or cmGlobalVisualStudio10Generator/cmGlobalVisualStudio10Win64Generator or one of the base classes? I didn't get any reply to this, so I would like to ask instead There is a VisualStudio GlobalGenerator, LocalGenerator and

[CMake] adjusting CMAKE_Fortran_LINK_EXECUTABLE

2011-03-01 Thread Ilias Miroslav
Dear CMake-experts, as developers of the quantum-chemistry software DIRAC (http://wiki.chem.vu.nl/dirac/index.php/Dirac_Program) we are shifting towards the CMake build/compilation system. By default, the current CMAKE_Fortran_LINK_EXECUTABLE consists of several variables:

[CMake] QtCreator project generator

2011-03-01 Thread Campbell Barton
QT-Creator which currently supports CMake by reading code::blocks project files. The problem with this is code::blocks project files don't write in #defines, so the IDE shows #ifdef's incorrecyly. For the short term I wrote a eclipse - qtcreator project converter in python, which has a few hard

Re: [CMake] QtCreator project generator

2011-03-01 Thread John Drescher
On Tue, Mar 1, 2011 at 6:45 AM, Campbell Barton ideasma...@gmail.com wrote: QT-Creator which currently supports CMake by reading code::blocks project files. The problem with this is code::blocks project files don't write in #defines, so the IDE shows #ifdef's incorrecyly. For the short

Re: [CMake] Fortran good and bad

2011-03-01 Thread Bill Hoffman
On 3/1/2011 3:05 AM, Biddiscombe, John A. wrote: should I be looking at cmVisualStudio10TargetGenerator, or cmGlobalVisualStudio10Generator/cmGlobalVisualStudio10Win64Generator or one of the base classes? I didn't get any reply to this, so I would like to ask instead There is a VisualStudio

Re: [CMake] adjusting CMAKE_Fortran_LINK_EXECUTABLE

2011-03-01 Thread Bill Hoffman
On 3/1/2011 4:09 AM, Ilias Miroslav wrote: Dear CMake-experts, as developers of the quantum-chemistry software DIRAC (http://wiki.chem.vu.nl/dirac/index.php/Dirac_Program) we are shifting towards the CMake build/compilation system. By default, the current CMAKE_Fortran_LINK_EXECUTABLE

Re: [CMake] tests from list

2011-03-01 Thread Mihai Sandu
Thanks. On Mon, Feb 28, 2011 at 8:01 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 2/28/2011 9:47 AM, Mihai Sandu wrote: There is a way to run tests from a list? ctest test1 test2 test3 ctest -R test1|test2|test3 -Bill ___ Powered

Re: [CMake] QtCreator project generator

2011-03-01 Thread Marcus D. Hanwell
On Tue, Mar 1, 2011 at 9:15 AM, John Drescher dresche...@gmail.com wrote: On Tue, Mar 1, 2011 at 6:45 AM, Campbell Barton ideasma...@gmail.com wrote: QT-Creator which currently supports CMake by reading code::blocks project files. The problem with this is code::blocks project files don't

Re: [CMake] QtCreator project generator

2011-03-01 Thread John Drescher
On Tue, Mar 1, 2011 at 9:15 AM, John Drescher dresche...@gmail.com wrote: On Tue, Mar 1, 2011 at 6:45 AM, Campbell Barton ideasma...@gmail.com wrote: QT-Creator which currently supports CMake by reading code::blocks project files. The problem with this is code::blocks project files don't

[CMake] Remove /D MBCS from VS projects

2011-03-01 Thread gekso
Hello! How can I remove multi-byte character set (/D MBCS) setting from visual studio projects? I need to create two configurations, one with UNICODE and one without anything ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] QtCreator project generator

2011-03-01 Thread Campbell Barton
On Tue, Mar 1, 2011 at 2:47 PM, Marcus D. Hanwell marcus.hanw...@kitware.com wrote: On Tue, Mar 1, 2011 at 9:15 AM, John Drescher dresche...@gmail.com wrote: On Tue, Mar 1, 2011 at 6:45 AM, Campbell Barton ideasma...@gmail.com wrote: QT-Creator which currently supports CMake by reading

Re: [CMake] Fortran good and bad

2011-03-01 Thread Biddiscombe, John A.
I think that the cmVisualStudio10TargetGenerator.cxx would be the most likely place for the fortran support to be added. They should be close to what is done in the cmLocalVisualStudio7Generator for fortran support. OK, that's what I ended up doing. I generated a simple fortran project using

[CMake] Visual Studio /AI and /clr compiler option

2011-03-01 Thread Pierluigi Taddei
I have a project that makes use of managed code and is compiled using the /clr option. 1 ) In order to set up cmake correctly I had to issue the following command: SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS /clr) #mark as managed code This was not sufficient because

Re: [CMake] Including a header file fails

2011-03-01 Thread Enrique Izaguirre
Thank you very much for your help. The header file is already #included in one of the source files. What I don't know is how to link it. Can I do it only with target_link_libraries ( ) or how? Thanks Enrique On Mon, Feb 28, 2011 at 5:26 PM, Andreas Pakulat ap...@gmx.de wrote: On 28.02.11

Re: [CMake] Including a header file fails

2011-03-01 Thread John Drescher
The header file is already #included in one of the source files. What I don't know is how to link it. Can I do it only with target_link_libraries ( ) or how? You do not link header files. You link source files. Why are you not specifying your source files on the target_link_libararies() line?

Re: [CMake] Including a header file fails

2011-03-01 Thread John Drescher
On Tue, Mar 1, 2011 at 2:15 PM, Enrique Izaguirre enrique.izagui...@gmail.com wrote: Sorry, I didn't explain correctly. All the source files are in variable ${hostFiles} and I generated and executable using add_executable (myprj ${hostFiles}) now I need to add the w32api folder from Windows,

[CMake] how to write a cmake function with 2 or 3 arguments?

2011-03-01 Thread Arnaud GELAS
Hi all, I would like to write a cmake function with one optional 3rd argument, the two first are mandatory. How to proceed? Let's take the following example: function( add_sikuli_test arg1 arg2 arg3 ) ... endfunction( add_sikuli_test ) Thanks, Arnaud

Re: [CMake] how to write a cmake function with 2 or 3 arguments?

2011-03-01 Thread David Cole
The mandatory function arguments are the ones that you name. Optional ones go after the named args and are referenced via ARGV0, ARGV1, ARGV2, ... or the ARGV and ARGN variables. See function documentation for more info: http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:function

Re: [CMake] how to write a cmake function with 2 or 3 arguments?

2011-03-01 Thread Arnaud GELAS
That was exactly what I needed! Thanks, Arnaud On 03/01/2011 03:12 PM, David Cole wrote: The mandatory function arguments are the ones that you name. Optional ones go after the named args and are referenced via ARGV0, ARGV1, ARGV2, ... or the ARGV and ARGN variables. See function

Re: [CMake] Including a header file fails

2011-03-01 Thread Enrique Izaguirre
Hello again, I tried several ways but I cannot make it work. The only thing I need to do is to add a folder which contains a windows header file, in order that it be included in the build. There must be a simple way to do it. Could you help? Maybe if you have an example or something similar.

[CMake] execute process when a specific test is launched

2011-03-01 Thread Arnaud GELAS
Hi all, I would need to make sure one executable is running before running one test added by CTest. I would like to do something like that: execute_process( COMMAND ${my_executable} ) add_test( MyOwnTest foo ) except that my_executable would be triggered, just before MyOwnTest starts. Is

Re: [CMake] Including a header file fails

2011-03-01 Thread Andreas Pakulat
On 01.03.11 14:58:15, Enrique Izaguirre wrote: I tried several ways but I cannot make it work. The only thing I need to do is to add a folder which contains a windows header file, in order that it be included in the build. There must be a simple way to do it. Could you help? Header files are

Re: [CMake] Including a header file fails

2011-03-01 Thread Enrique Izaguirre
Hello, I have a program called fastboot.c which #includes util_windows.h which #includes windows.h which finally #includes winbase.h where all the constants are defined. The errors I get are because the Makefile I got from CMake, doesn't find the constants, as shown: /host/fastboot.h:101:

Re: [CMake] Including a header file fails

2011-03-01 Thread Michael Jackson
Note that your error does not say the compiler could NOT find winbase.h, it is saying that it does not have a definition for those constants. Do you have #define WIN_LEAN_AND_MEAN or something like that somewhere in your code or is there another define that is causing the compiler to skip over

[CMake] Splitting directory and file.

2011-03-01 Thread Pablo Zurita
Hello everybody, I'm just getting started and I need some help dealing with strings in CMake. Basically what I have a bunch of strings such as the ones below: Main.cpp Window/Example/Example.cpp Window/Window.cpp What I need to do is create two strings for each, one is going to be the

Re: [CMake] Remove /D MBCS from VS projects

2011-03-01 Thread Yuri Timenkov
I think you can just add _UNICODE (or remove) to definitions, CMake will automatically determine necessary vcproj options then. On Tue, Mar 1, 2011 at 6:20 PM, gekso ev.93...@gmail.com wrote: Hello! How can I remove multi-byte character set (/D MBCS) setting from visual studio projects? I need

Re: [CMake] Splitting directory and file.

2011-03-01 Thread Yuri Timenkov
Does get_filename_component help? On Wed, Mar 2, 2011 at 6:17 AM, Pablo Zurita pzur...@gmail.com wrote: Hello everybody, I'm just getting started and I need some help dealing with strings in CMake. Basically what I have a bunch of strings such as the ones below: Main.cpp

[CMake] Static code analysis with CDash

2011-03-01 Thread Mika . Rajala
Hi Is it possible to include static code analysis to CDash? I could make a test that fails if the tool detects errors, but I'd like to make something better. Currently I'm testing with the static code analysis tool CppCheck -mika ___ Powered by

[CMake] Select CMAKE_LIBRARY_OUTPUT_DIRECTORY_CONFIG in a CMakeLists.txt script

2011-03-01 Thread John McGehee
I am defining separate output paths for different configurations: CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG= bin/win32/dbg CMAKE_RUN TIME_OUTPUT_DIRECTORY_RELEASE = bin/win32/opt CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG= lib/win32/dbg CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE =

[Cmake-commits] CMake branch, next, updated. v2.8.4-1037-ga4cd5ef

2011-03-01 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 a4cd5effbb7d34a1cc5739d9b73529b233752237 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-103-gc34b0ea

2011-03-01 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, master has been updated via c34b0eac257e4054804348476d1b5f9585fe58d1 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-105-gc55ce31

2011-03-01 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, master has been updated via c55ce31c6e8a8e05333fcd8b159939aeef7f8aff (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-110-gb5b4aa2

2011-03-01 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, master has been updated via b5b4aa2f713fd7e18a70b09d52aec1841c8393cf (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-112-g79037a8

2011-03-01 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, master has been updated via 79037a818e43e35c9e1b134d65f597d026ab6b54 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-114-g0ac3501

2011-03-01 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, master has been updated via 0ac35012f492e00f6cd4f4dcc50c3cf70c12ce4c (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-117-g1eca67e

2011-03-01 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, master has been updated via 1eca67e12df5d2a86eab61e364dff4b3bc54916d (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-119-gbb74561

2011-03-01 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, master has been updated via bb745612bc40aa6d2473f3a5fc2cd45db3a16761 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-121-g9a7c6a3

2011-03-01 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, master has been updated via 9a7c6a3cc49131091f5aa9cd36b81cb42ad15a40 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.4-1046-g7375f6c

2011-03-01 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 7375f6ce8c8fa782374b73bbea12ad90c66bb7c6 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-122-g32f18c9

2011-03-01 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 32f18c94e1205a0d06ac978d28de2d40b739f05c (commit) from

[Cmake-commits] CMake branch, next, updated. v2.8.4-1051-gde19a39

2011-03-01 Thread Alexander Neundorf
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 de19a390e282c6e853b0ae3e4c8cc02cc98f937b (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.4-1053-g99f7331

2011-03-01 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 99f733198716373667ecdeeb5a5dd8d1e31e0d09 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.4-1057-gdeb32dc

2011-03-01 Thread Alexander Neundorf
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 deb32dc44be2d3f918aad43c9189e8d87f9bba75 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-123-gf72cc88

2011-03-01 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 f72cc88c659d586cc65ac47e7807054345ccad89 (commit) from

[Cmake-commits] CMake branch, next, updated. v2.8.4-1060-gbfae221

2011-03-01 Thread Alexey Ozeritsky
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 bfae221b7c968c553209b357922f0e6fa624b694 (commit) via