Re: [CMake] Install selected|group of targets

2012-02-02 Thread Michael Wild
On 02/02/2012 08:44 AM, Joakim Hove wrote: First you should use the COMPONENT parameter of the INSTALL command. See: cmake --help-command install and http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack then you may install all the target/files/...

Re: [CMake] Install selected|group of targets

2012-02-02 Thread Joakim Hove
I implemented the make install-foo feature some time ago, but didn't find the time to write the required tests, so it never got merged into CMake: OK - I have never looked at the CMake source code, and am in general quite rusty in C++ - but in my opinion this would have been a very valuable

Re: [CMake] Install selected|group of targets

2012-02-02 Thread Eric Noulard
2012/2/2 Joakim Hove joakim.h...@gmail.com: I implemented the make install-foo feature some time ago, but didn't find the time to write the required tests, so it never got merged into CMake: OK - I have never looked at the CMake source code, and am in general quite rusty in C++ - but in my

[CMake] CheckIncludeFiles problem

2012-02-02 Thread Yngve Inntjore Levinsen
Dear all, I have a problem with CheckIncludeFiles that I cannot figure out. I'm sure I'm just making a stupid mistake though, but I am unable to figure out what. The following code is in CMakeLists.txt: include(CheckIncludeFiles) check_include_files(readline/history.h HAVE_READLINE_HISTORY_H)

Re: [CMake] CheckIncludeFiles problem

2012-02-02 Thread Micha Renner
May be, there is an error when the compiler process the header file. During CHECK_INCLUDE_FILES CMake invokes the Compiler to check whether the header file works fines. In most cases reason is a missing additional header files (but not always). So, check the log files of CMake in the binary

Re: [CMake] Enhancement to CHECK_C_RUNS_SOURCE

2012-02-02 Thread Alexander Neundorf
On Wednesday 01 February 2012, Clifford Yapp wrote: We currently have a minor local enhancement to CHECK_C_RUNS_SOURCE that I would like to contribute back to the main module, if it is acceptable to the developers of CMake: We often have our own .c file stored in our tree for TRY_RUN

[CMake] CMAKE 2.8.5 - CMAKE_GENERATOR Bug?

2012-02-02 Thread Sarnath K - ERS, HCLTech
All, I was trying to use the external project add feature to add a 32-bit VC++ project on a 64-bit parent build system. However, I ran into problems while compiling the 32-bit project. devenv used to complain invalid solution configuration I tried to explicitly set CMAKE_BUILD_TYPE using -D

Re: [CMake] CMAKE 2.8.5 - CMAKE_GENERATOR Bug?

2012-02-02 Thread John Drescher
On Thu, Feb 2, 2012 at 12:33 PM, Sarnath K - ERS, HCLTech k_sarn...@hcl.com wrote: All, I was trying to use the external project add feature to add a 32-bit VC++ project on a 64-bit parent build system. However, I ran into problems while compiling the 32-bit project. “devenv” used to

[CMake] link library paths

2012-02-02 Thread Alex Olivas
I'm trying to link to libraries located in /usr/lib. This is a very simple example using boost::python and Qt. Here's my cmake file : http://codepad.org/tZxBzXVP I added the link_directories command only after the initial link failed. The docs say this is rarely needed since find_package

Re: [CMake] ICC + Windows

2012-02-02 Thread Brad King
On 2/1/2012 2:05 PM, Roland Schulz wrote: what is the recommended Generator to compile on Windows with ICC on the shell? If I try to use the Visual Studio 2010 (or 2008) generator There is an open issue tracker entry requesting direct .icproj file generation:

Re: [CMake] Enhancement to CHECK_C_RUNS_SOURCE

2012-02-02 Thread Clifford Yapp
OK - how should I proceed? File a bug report and submit patches for all of the files? Cheers, CY On Thu, Feb 2, 2012 at 11:59 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: I think so. In this case, this should also be added to CheckCXXSourceRuns, CheckCSourceCompiles and

[CMake] Portable revision lookup?

2012-02-02 Thread Oliver kfsone Smith
Right now I wrap my Linux-based build process with a script that features the line REVISION=`svn info ${SRC_PATH} | awk '/^Revision/ { print $2 }'` Which is neither OS or VCS portable. I'm trying to put together a CPack configuration to make the builds, and I'd like to name the resulting

Re: [CMake] CheckIncludeFiles problem

2012-02-02 Thread Yngve Inntjore Levinsen
Hi Micha, Aha, thanks! That was more clever than I would expect, and it was the problem. readline/history.h was dependent on stdio.h being include beforehand. Just in case anyone else reads this mail in the future, here is a documentation on how to check an array of include files:

[CMake] Fwd: Portable revision lookup?

2012-02-02 Thread John Drescher
-- Forwarded message -- From: John Drescher dresche...@gmail.com Date: Thu, Feb 2, 2012 at 4:36 PM Subject: Re: [CMake] Portable revision lookup? To: Oliver kfsone Smith osm...@playnet.com On Thu, Feb 2, 2012 at 4:10 PM, Oliver kfsone Smith osm...@playnet.com wrote: Right now I

Re: [CMake] Portable revision lookup?

2012-02-02 Thread Oliver kfsone Smith
John Drescher said the following on 2/2/2012 3:36 PM: Cmake has support for pulling the svn and I believe git revs using cmake modules. Here is what I do for svn Much appreciated -- I just didn't think to look in the Find package, duly noted for future reference. - Oliver -- Powered by

Re: [CMake] Portable revision lookup?

2012-02-02 Thread Oliver kfsone Smith
Oliver kfsone Smith said the following on 2/2/2012 4:17 PM: John Drescher said the following on 2/2/2012 3:36 PM: Cmake has support for pulling the svn and I believe git revs using cmake modules. Here is what I do for svn Much appreciated -- I just didn't think to look in the Find package,

[CMake] CPack / Debian install location

2012-02-02 Thread Oliver kfsone Smith
osmith@luciddev:~/pn/WW2/src$ cmake --version cmake version 2.8.2 I can't see to get make package to generate Debian packages that install any place but /usr/bin. (I actually want them in /playnet/ra/bin, /playnet/ra/lib and so on) SET(CPACK_GENERATOR DEB) SET(CPACK_INSTALL_PREFIX

Re: [CMake] link library paths

2012-02-02 Thread Andreas Pakulat
On 02.02.12 11:51:11, Alex Olivas wrote: I'm trying to link to libraries located in /usr/lib. This is a very simple example using boost::python and Qt. Here's my cmake file : http://codepad.org/tZxBzXVP I added the link_directories command only after the initial link failed. Using

Re: [CMake] Compile flag issues and VS Express

2012-02-02 Thread Glenn Coombs
I think 10M is an insanely large default stack size. It just encourages people to create int foo[100][100][100] on the stack instead of learning how to use malloc or new. When creating non-cmake Visual Studio projects the default stack size is way more sensible. I can't see any reason to

[CMake] how to specify a different source directory

2012-02-02 Thread Dev Guy
I have a project file and within it I have created a test folder and placed some testing code there. From my test CMakelist, I need to access a .cpp file from the parent folder but I am not sure how to do this? Thus the call to add_executable fails because it can't locate the source file. --

Re: [CMake] link library paths

2012-02-02 Thread Alex Olivas
I don't know what the issue was, but it's fixed in a later version. I upgraded from 2.8.2 to 2.8.7 and the problem went away. So when you say my linker-line is wrong, you mean in the verbose output there's no '-L/usr/lib' passed to ld, right? Or is there something wrong with my cmake file, other

Re: [CMake] how to specify a different source directory

2012-02-02 Thread Dev Guy
On Thu, Feb 2, 2012 at 7:46 PM, Dev Guy devguy...@gmail.com wrote: I have a project file and within it I have created a test folder and placed some testing code there. From my test CMakelist, I need to access a .cpp file from the parent folder but I am not sure how to do this? Thus the call

Re: [CMake] how to specify a different source directory

2012-02-02 Thread aaron . meadows
That sounds about right to me. (though personally, I like to make my tests include the files they are testing by linking to a library containing them...) If you wanted to abstract the location away from the test code, you could set a variable containing the source files in a higher (or earlier)

Re: [CMake] CMAKE 2.8.5 - CMAKE_GENERATOR Bug?

2012-02-02 Thread Sarnath K - ERS, HCLTech
Hello John, I can +vely see this behavior with the latest 2.8.7 version as well. I am using a windows 64-bit machine with Visual studio 2008 installed on it. This is how I use Externa Project Add command: include(ExternalProject) ExternalProject_Add( gen CMAKE_GENERATOR

Re: [CMake] link library paths

2012-02-02 Thread Andreas Pakulat
On 02.02.12 18:37:03, Alex Olivas wrote: I don't know what the issue was, but it's fixed in a later version. I upgraded from 2.8.2 to 2.8.7 and the problem went away. So when you say my linker-line is wrong, you mean in the verbose output there's no '-L/usr/lib' passed to ld, right? No, the

Re: [cmake-developers] Ninja generator on Windows

2012-02-02 Thread Brad King
On 2/1/2012 10:23 PM, Bill Hoffman wrote: On 2/1/2012 4:19 PM, Peter Kümmel wrote: We can't use cmd. Maybe ninja could be fixed. If not, you could come up with something that uses CMake scripts. cmake -E foo.cmake foo.cmake execute_process() Not ideal, but until ninja figures it

Re: [cmake-developers] CodeLite generator

2012-02-02 Thread Brad King
On 2/1/2012 5:51 PM, Jim Goodnow II wrote: I am working on a CodeLite generator for CMake. Great! I assume you mean http://www.codelite.org/ ? Is there a set of tests that should be run CMake comes with an extensive test suite that covers the major interfaces plus many corner cases that

[cmake-developers] [CMake 0012926]: FindPkgConfig module doesn't honor CMAKE_PREFIX_PATH.

2012-02-02 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12926 == Reported By:arrowdodger Assigned To:

Re: [cmake-developers] Ninja generator on Windows

2012-02-02 Thread Bill Hoffman
On 2/2/2012 8:30 AM, Brad King wrote: On 2/1/2012 10:23 PM, Bill Hoffman wrote: On 2/1/2012 4:19 PM, Peter Kümmel wrote: We can't use cmd. Maybe ninja could be fixed. If not, you could come up with something that uses CMake scripts. cmake -E foo.cmake foo.cmake execute_process()

Re: [cmake-developers] Ninja generator on Windows

2012-02-02 Thread Nicolas Desprès
On Thu, Feb 2, 2012 at 4:34 PM, Bill Hoffman bill.hoff...@kitware.com wrote: On 2/2/2012 8:30 AM, Brad King wrote: On 2/1/2012 10:23 PM, Bill Hoffman wrote: On 2/1/2012 4:19 PM, Peter Kümmel wrote: We can't use cmd. Maybe ninja could be fixed. If not, you could come up with something

Re: [cmake-developers] Ninja generator on Windows

2012-02-02 Thread Bill Hoffman
On 2/2/2012 10:41 AM, Nicolas Desprès wrote: When you use scripts or file like link.txt you lose the power of the special $in and $out variables or variable in general that are expanded in the rule. I am not sure what those are, must be a Ninja thing... With windows, unless you have

Re: [cmake-developers] Ninja generator on Windows

2012-02-02 Thread Bill Hoffman
Sorry for asking a question without looking into the details first... But Why does the ninja generator need to use ? I am pretty sure the other CMake generators do not need to use . -Bill -- Bill Hoffman Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065

[cmake-developers] [CMake 0012928]: CMake silently ignores CPPFLAGS

2012-02-02 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=12928 == Reported By:Aron Xu Assigned To:

[cmake-developers] [CMake 0012929]: The -shared gcc option is not provided for MODULE shared library if PROJECT command declares in ways

2012-02-02 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=12929 == Reported By:Zheng GONG Assigned To:

Re: [cmake-developers] Ninja generator on Windows

2012-02-02 Thread Nicolas Desprès
2012/2/2 Bill Hoffman bill.hoff...@kitware.com: Sorry for asking a question without looking into the details first... But No problem. Why does the ninja generator need to use ?  I am pretty sure the other CMake generators do not need to use . Most of them come from the working

[Cmake-commits] CMake branch, master, updated. v2.8.7-267-g46a734c

2012-02-02 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 46a734cdbd4c2ffb5af64a3f0d8a5c48c47b8140 (commit) from