[cmake-developers] [CMake 0012580]: get_filename_component behavior depends on CACHE keyword

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

Re: [cmake-developers] [PATCH 0/3] The CMake Ninja generator.

2011-11-16 Thread Bill Hoffman
On 11/16/2011 9:05 AM, OKUMURA Yuki wrote: (Sorry Bill, i repost here..) 2011/11/16 Bill Hoffmanbill.hoff...@kitware.com: - snip - What type of evolution will Ninja need? I suppose it could use cmake scripts and exectue_process which can do type things pretty easy. Why not insert cmd /c

Re: [cmake-developers] slow regex implementation in RegularExpression

2011-11-16 Thread Alexandru Ciobanu
Hi, I was successful in making CMake work with PCRE. As expected, it was straightforward. The problem is that PCRE is also slow. So, I tested the same string and regex with multiple different libraries in order to assess performance. The regular expression in question is: ([^:]+):

[cmake-developers] The upcoming CMake 2.8.7 release candidate cycle

2011-11-16 Thread David Cole
Just looking at the calendar... Three short weeks from today, we are planning to schedule the build and upload of CMake 2.8.7-rc1 so all of you can give it a try. Followed by weekly rc's as needed until the final official release of CMake 2.8.7, scheduled for Wednesday Dec. 28, 2011. If you are

Re: [cmake-developers] slow regex implementation in RegularExpression

2011-11-16 Thread Alexandru Ciobanu
Hi Brad, [1] On 11/16/2011 12:44 PM, Alexandru Ciobanu wrote: For each library the steps are: - regcomp() the regular expression - regexec() the expression on the string Can you time each of these steps separately for each library? I would not be surprised if the compilation time is the

Re: [cmake-developers] slow regex implementation in RegularExpression

2011-11-16 Thread Alexander Neundorf
On Wednesday 16 November 2011, Alexandru Ciobanu wrote: Hi Brad, ... Advantages of TRE: - API very similar to standard regex.h (i.e. easy to integrate with CMake) - supports wide characters - compiles on many platforms Windows, AIX, HP-UX, you name it. What do you think about TRE?

Re: [cmake-developers] slow regex implementation in RegularExpression

2011-11-16 Thread Brad King
On 11/16/2011 2:12 PM, Alexandru Ciobanu wrote: This is how I run the tests (pseudocode): recomp() repeat 1000 times: regexec() Thanks for the explanation. TRex -- 680ms PCRE -- 610ms ( with pcre_exec() ) PCRE -- 990ms ( with pcre_dfa_exec() ) re2

Re: [cmake-developers] slow regex implementation in RegularExpression

2011-11-16 Thread Bill Hoffman
A little off topic, but I am wondering if the ctest performance issue for xcode could be fixed without changing the regex. The problem with xcode is that it spits out very verbose output. I am wondering if some short circuit stuff could be put in place. Maybe do a string compare of the

Re: [cmake-developers] slow regex implementation in RegularExpression

2011-11-16 Thread Bill Hoffman
On 11/16/2011 4:11 PM, Sean McBride wrote: The downside is that this solution would be fragile. xcodebuild's output is not guaranteed to be the same forever, it's not like a public API. Already today, gcc and clang output pretty differently. I'm a little worried this would bite us. Besides,

Re: [CMake] Issues with finding raptor in the soprano build

2011-11-16 Thread Andreas Pakulat
On 16.11.11 09:46:08, Laszlo Papp wrote: -- RAPTOR_LIBRARIES: /usr/lib/libraptor2.so -- RAPTOR_INCLUDE_DIR: /usr/include/raptor2 Ok, and since you didn't post that yet, what the exact error message from cmake that you get and where is it generated? Andreas -- Powered by www.kitware.com

Re: [CMake] Issues with finding raptor in the soprano build

2011-11-16 Thread Laszlo Papp
I mentioned this in my first email: I think this is a bit closer to the issue: -- [TEST-BEGIN] - FIND_PACKAGE RAPTOR2.0.4 -- VERSION_VAR (missing: REQUIRED_VARS) -- [TEST-END] - FIND_PACKAGE RAPTOR2.0.4 for this debugging lines in the CMakeLists.txt file: message(STATUS [TEST-BEGIN] -

Re: [CMake] Issues with finding raptor in the soprano build

2011-11-16 Thread Michael Wild
On 11/16/2011 09:13 AM, Laszlo Papp wrote: I mentioned this in my first email: I think this is a bit closer to the issue: -- [TEST-BEGIN] - FIND_PACKAGE RAPTOR2.0.4 -- VERSION_VAR (missing: REQUIRED_VARS) -- [TEST-END] - FIND_PACKAGE RAPTOR2.0.4 for this debugging lines in the

Re: [CMake] Issues with finding raptor in the soprano build

2011-11-16 Thread Laszlo Papp
What version of CMake are you using? The extended signature of find_package_handle_standard_args() you use in FindRaptor.cmake became only available in CMake 2.8.4. Sadly 2.8.2 is the available version: http://harmattan-dev.nokia.com/pool/harmattan-beta3/free/c/cmake/ I was claiming a lot

[CMake] Clear CDash Log

2011-11-16 Thread norulez
Hi, is there a way to clear the CDash Log for a specific build/project? My problem is that i already have fixed the problem (Got a packet bigger than 'max_allowed_packet' bytes) and now I want to remove these logs. (The orange triangle) Thanks in advance Best Regards NoRulez -- Powered by

Re: [CMake] Adding a new language

2011-11-16 Thread Michael Hertling
On 11/16/2011 04:13 AM, Stefan Monnier wrote: I'd still like to know how to explain to cmake that the command produces 2 files, but at least I can get rid of my hack. That (assuming just a simple object file is produced by compilation) is one of several general limitations with CMake language

Re: [CMake] Issues with finding raptor in the soprano build

2011-11-16 Thread Michael Wild
On 11/16/2011 09:35 AM, Laszlo Papp wrote: What version of CMake are you using? The extended signature of find_package_handle_standard_args() you use in FindRaptor.cmake became only available in CMake 2.8.4. Sadly 2.8.2 is the available version:

Re: [CMake] cmake 2.8.6 On Linux , link error and added

2011-11-16 Thread Michael Hertling
On 11/15/2011 06:26 PM, david_bjorn...@agilent.com wrote: The issue has been resolved http://public.kitware.com/Bug/view.php?id=12575 ++David-Bjornbak; OK, thanks for the hint. Regards, Michael PS: Please drop the ML a line if there's an outside progress in a topic you initiated -

Re: [CMake] cmake 2.8.6 On Linux , link error and added headers to ..._EXTERNAL_OBJECTS for executables

2011-11-16 Thread Michael Hertling
On 11/15/2011 06:04 PM, Bill Hoffman wrote: On 11/15/2011 11:52 AM, Michael Hertling wrote: Could you boild down this issue to a minimal and self-sufficient example - i.e. a project working with 2.6 (quite old) but failing with 2.8 - and post it here for further investigation? There was a

Re: [CMake] Failure to generate correct output name in visual studio

2011-11-16 Thread David Cole
If you end the name in a ., or set the suffix to ., does it produce a file like you want? Or does it still append dll? On Wed, Nov 16, 2011 at 2:06 AM, J Decker d3c...@gmail.com wrote: (Visual studio bug actually - as I was trying to find the actual difference in the output, and finding none,

Re: [CMake] Issues with finding raptor in the soprano build

2011-11-16 Thread Laszlo Papp
The soprano author seems to keep a local copy of that macro: https://projects.kde.org/projects/kdesupport/soprano/repository/revisions/master/entry/cmake/modules/FindPackageHandleStandardArgs.cmake It is probably outdated since vimdiff

[CMake] Using cpack for custom/local deployment

2011-11-16 Thread Alexander Broekhuis
Hi all, I have some questions regarding the use of CPack and CMake. What I'd like to do is have the a target execute multiple cpack configurations (additionally, have a possibility to execute only one configuration). The cpack config can use a component to do filtering on the artifacts needed

Re: [CMake] Using cpack for custom/local deployment

2011-11-16 Thread Michael Hertling
On 11/16/2011 02:11 PM, Alexander Broekhuis wrote: Hi all, I have some questions regarding the use of CPack and CMake. What I'd like to do is have the a target execute multiple cpack configurations (additionally, have a possibility to execute only one configuration). The cpack config can

Re: [CMake] Installing Visual Studio PDB files with CMake

2011-11-16 Thread Stephen Torri
On 11/4/11, Michael Hertling mhertl...@online.de wrote: The problem is that PDB files are usually generated next to their binary in a configuration-specific directory which can not be accessed smoothly by INSTALL(FILES ...). However, you can use a POST_BUILD custom command in conjunction with

Re: [CMake] Issues with finding raptor in the soprano build

2011-11-16 Thread Michael Wild
Alex recently also asked something to this effect on the list... IMHO it would be best to copy the module verbatim and then in the copy do something like this at the very top: if(EXISTS ${CMAKE_ROOT}/Modules/Foo.cmake) include(${CMAKE_ROOT}/Modules/Foo.cmake) else() ... endif() Either put the

Re: [CMake] Installing Visual Studio PDB files with CMake

2011-11-16 Thread David Cole
On Wed, Nov 16, 2011 at 9:32 AM, Stephen Torri stephen.to...@gmail.com wrote: On 11/4/11, Michael Hertling mhertl...@online.de wrote: The problem is that PDB files are usually generated next to their binary in a configuration-specific directory which can not be accessed smoothly by

Re: [CMake] Issues with finding raptor in the soprano build

2011-11-16 Thread Laszlo Papp
if(EXISTS ${CMAKE_ROOT}/Modules/Foo.cmake)  include(${CMAKE_ROOT}/Modules/Foo.cmake) else() ... endif() If I have 2.8.2 installed on the host, but my software has 2.8.6 module imported, the version 2.8.2 will be selected. Therefore, it will break. I think it needs more restricted check.

[CMake] FindBoost.cmake not (fully) honoring BOOST_ROOT

2011-11-16 Thread Ben Boeckel
Hi, Using the 'release' branch of CMake, it seems that FindBoost.cmake got broken such that when BOOST_ROOT is set, the system copy of boost is still found, effectively ignoring whatever BOOST_ROOT sets. This doesn't work at all for projects where a newer boost than the system version is needed.

[CMake] CDash + Perforce

2011-11-16 Thread Robert Dailey
Is it possible to use CDash with perforce as our SCM? During the CDash installation, it is asking me for a Repository ViewerURL, and from the drop down it doesn't show perforce as a valid item in the list. Can this step be skipped or is there some way to make perforce work with this? I believe

[CMake] Problem with target DLL name not matching SWIG dllimport name

2011-11-16 Thread Stephen Torri
I am using CMAKE_DEBUG_POSTFIX to attach a string to end of each DLL name being built using Visual Studio 2008. The DLLs have the name that expect which is the target name + CMAKE_DEBUG_POSTFIX. The problem I am running into is the SWIG wrapper DLL name does not match the dllimport flag when

Re: [CMake] CDash + Perforce

2011-11-16 Thread David Cole
CDash is just a web app / server app. It does not do builds, it just collects information from clients that submit to it, and displays results. Client machines can run ctest -S scripts to submit build/test results to a CDash dashboard. Look at the notes attached to a typical CMake dashboard for

Re: [CMake] Adding a new language

2011-11-16 Thread Bill Hoffman
On 11/16/2011 3:52 AM, Michael Hertling wrote: On 11/16/2011 04:13 AM, Stefan Monnier wrote: I'd still like to know how to explain to cmake that the command produces 2 files, but at least I can get rid of my hack. That (assuming just a simple object file is produced by compilation) is one of

Re: [CMake] CDash + Perforce

2011-11-16 Thread David Cole
And, to answer your initial question, no, perforce is not yet an officially supported version control system for use with ctest -S scripts and CDash. The ones that are include: git svn cvs hg bzr Additional code needs to be added to both ctest and CDash in order to support new version

Re: [CMake] cmake 2.8.6 On Linux , link error and added headers to ..._EXTERNAL_OBJECTS for executables

2011-11-16 Thread Bill Hoffman
On 11/16/2011 4:43 AM, Michael Hertling wrote: On 11/15/2011 06:04 PM, Bill Hoffman wrote: On 11/15/2011 11:52 AM, Michael Hertling wrote: Could you boild down this issue to a minimal and self-sufficient example - i.e. a project working with 2.6 (quite old) but failing with 2.8 - and post it

Re: [CMake] Failure to generate correct output name in visual studio

2011-11-16 Thread J Decker
On Wed, Nov 16, 2011 at 3:46 AM, David Cole david.c...@kitware.com wrote: If you end the name in a ., or set the suffix to ., does it produce a file like you want? Or does it still append dll? That's a good idea - if I set the project name to 'something.' I do get the right output (the static

Re: [CMake] CDash + Perforce

2011-11-16 Thread Robert Dailey
So basically because we use perforce, there is no way to use ctest? I assume ctest does the following: - Check out source code - Configure CMake - Generate CMake - Initiate a build from generated targets Is this correct? If so, it's the first step that code needs to be added for to support

Re: [CMake] FindBoost.cmake not (fully) honoring BOOST_ROOT

2011-11-16 Thread Alain Leblanc
This is not a new issue, as you can see in this thread: http://www.cmake.org/pipermail/cmake/2010-March/035889.html Very frustrating. I think in the end I removed the system installation. May not be an option for everyone. On 11/16/2011 10:32 AM, Ben Boeckel wrote: Hi, Using the 'release'

Re: [CMake] Circular dependencies because of file names?

2011-11-16 Thread Jookia
I've actually used that workaround, but it seems dirty as it shows up in IDE targets like Visual Studio or other IDEs or makefiles. In fact, I kind of like the 'generating /docs' part of the makefile. Would it just be smarter to rename the target to 'documentation'? -- Powered by

[CMake] Include Link Dependencies

2011-11-16 Thread Marcus Monaghan
Hi, I'm just starting to use the cpack module in cmake to put together TGZ. I use TARGET_LINK_LIBRARIES to specify which libs to use during linking. Is there a way to get a list of the libs that are found and include them in my TGZ? I can include the libs that are compiled as part of my

Re: [CMake] Multiple source directory scenario and cdt generator

2011-11-16 Thread Alexander Neundorf
On Wednesday 16 November 2011, Dan Kegel wrote: On Tue, Nov 15, 2011 at 1:28 PM, Dan Kegel d...@kegel.com wrote: Tried it. It seems to get the linking right, though I'm not sure how excited my users are going to be about how deeply buried those source files are in the GUI. There's a

Re: [CMake] CDash + Perforce

2011-11-16 Thread David Cole
On Wed, Nov 16, 2011 at 12:28 PM, Robert Dailey rcdai...@gmail.com wrote: So basically because we use perforce, there is no way to use ctest? Well, you can still use ctest, you just won't be able to use the ctest_update function in your script to do the update, track the changed files, and

Re: [CMake] Multiple source directory scenario and cdt generator

2011-11-16 Thread Dan Kegel
On Wed, Nov 16, 2011 at 9:43 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: I suspect that the only way to make source code control plugins happy is to link to dummy projects like you do for the main source directory. And then there's no need for those individual source file links.

[CMake] The upcoming CMake 2.8.7 release candidate cycle

2011-11-16 Thread David Cole
Just looking at the calendar... Three short weeks from today, we are planning to schedule the build and upload of CMake 2.8.7-rc1 so all of you can give it a try. Followed by weekly rc's as needed until the final official release of CMake 2.8.7, scheduled for Wednesday Dec. 28, 2011. If you are

Re: [CMake] Multiple source directory scenario and cdt generator

2011-11-16 Thread Alexander Neundorf
On Wednesday 16 November 2011, Dan Kegel wrote: On Wed, Nov 16, 2011 at 9:43 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: I suspect that the only way to make source code control plugins happy is to link to dummy projects like you do for the main source directory. And then

Re: [CMake] CDash + Perforce

2011-11-16 Thread David Cole
Overall, it will be challenging. We prefer adding tests of all new features, and it's difficult to add a test that runs on a sufficient number of dashboard clients (greater than zero... :-) when the thing you're testing depends on having / simulating a commercial tool installed on the machine.

Re: [CMake] Include Link Dependencies

2011-11-16 Thread Andreas Pakulat
On 16.11.11 17:35:22, Marcus Monaghan wrote: Hi, I'm just starting to use the cpack module in cmake to put together TGZ. I use TARGET_LINK_LIBRARIES to specify which libs to use during linking. Is there a way to get a list of the libs that are found and include them in my TGZ? I can

[CMake] CMake deleting SVN directories

2011-11-16 Thread Mauricio Klein
Hello guys! I have researched a lot about it but can't find a solution. I have a project under SVN control and using CMake to compile the whole code. But, when i run make clean, the CMake clean its temporary directories and the .svn directories too, what cause many troubles when commiting the

Re: [CMake] Adding a new language

2011-11-16 Thread Alan W. Irwin
On 2011-11-15 23:35-0500 Bill Hoffman wrote: On 11/14/2011 3:24 PM, Alan W. Irwin wrote: If you are willing to make such an OCaml summary, I would be willing to do the same thing for Ada to make our joint case to the CMake developers of what kind of additional generic language support is

Re: [CMake] cmake 2.8.6 On Linux , link error and added headers to ..._EXTERNAL_OBJECTS for executables

2011-11-16 Thread Michael Hertling
On 11/16/2011 06:05 PM, Bill Hoffman wrote: On 11/16/2011 4:43 AM, Michael Hertling wrote: On 11/15/2011 06:04 PM, Bill Hoffman wrote: On 11/15/2011 11:52 AM, Michael Hertling wrote: Could you boild down this issue to a minimal and self-sufficient example - i.e. a project working with 2.6

Re: [CMake] CMake deleting SVN directories

2011-11-16 Thread Eric Noulard
2011/11/16 Mauricio Klein mauricio.klein@gmail.com: Hello guys! I have researched a lot about it but can't find a solution. I have a project under SVN control and using CMake to compile the whole code. But, when i run make clean, the CMake clean its temporary directories and the .svn

[CMake] problems adding opencv

2011-11-16 Thread Javi Soler
Hello! I'm just adding the libraries (openCV and PCL) to my project: cmake_minimum_required(VERSION 2.8) project(grabbing) find_package(OpenCV REQUIRED) find_package(PCL 1.3.0) include_directories(${PCL_INCLUDE_DIRS}) link_directories(${PCL_LIBRARY_DIRS}) add_definitions(${PCL_DEFINITIONS})

Re: [CMake] problems adding opencv

2011-11-16 Thread David Cole
Looks like OpenCV is not built or installed correctly here. The string @CMAKE_LIB_DIRS_CONFIGCMAKE@ should have been resolved into a list of directories value when the OpenCVConfig.cmake file was created. How did you build/install OpenCV? On Wed, Nov 16, 2011 at 4:51 PM, Javi Soler

[CMake] TCL modules

2011-11-16 Thread Joe Brandt
I have a couple issues, that I'd like to help fix, with the current FindTCL.cmake, FindTclsh.cmake, FindWish.cmake, and FindTclStub.cmake that make them unusable for me. The first is they do not always find the various components from the same Tcl installation on the system. The second being

Re: [CMake] [RFC] How to use pkg-config under Windows (... and OSX) ?

2011-11-16 Thread Alan W. Irwin
Hi Alex: On 2011-11-15 18:07+0100 Alexander Neundorf wrote: Hi, cmake ships with a FindPkgConfig.cmake file, which is used by some Find- modules. Also in KDE, we have quite a lot of Find-modules which use FindPkgConfig.cmake. Now, some of them put a if(UNIX) find_package(PkgConfig) endif()

Re: [CMake] TCL modules

2011-11-16 Thread Clifford Yapp
FWIW, BRL-CAD has its own FindTCL.cmake module which is quite different from the current one, in case that is helpful/of interest: http://brlcad.svn.sf.net/viewvc/brlcad/brlcad/trunk/misc/CMake/FindTCL.cmake?revision=45989view=markup We'd eventually like to fold all of our updates to various

[Cmake-commits] CMake branch, master, updated. v2.8.6-212-gcbf453e

2011-11-16 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 cbf453eeb625aef603fddfc0180ec0973d827e32 (commit) from

[Cmake-commits] CMake branch, next, updated. v2.8.6-1908-g35fc04b

2011-11-16 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 35fc04b4398310294d55f4343853555307946a25 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.6-1910-g67d15e6

2011-11-16 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 67d15e668e65940d9bb04eddb239e97e5608f79d (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.6-1913-gf971d85

2011-11-16 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 f971d858190fa56c79899de81d2415aa47c15fc1 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.6-1923-gdd2f604

2011-11-16 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 dd2f604b30aa9fb31aa7e61e55ce386b534f8ceb (commit) via