[CMake] Patch CMake for Mac static library creation

2010-12-03 Thread Belcourt, K. Noel
Hi, I'm on Mac OSX 10.5.8 with Intel 12.x compilers and CMake version 2.8.3. CMake doesn't seem to add the -c option to the ranlib command to include common symbols into the library table of contents. Here's the documentation for Apple's ranlib. -c Include common symbols a

Re: [CMake] Problem setting ENVIRONMENT for ctest

2010-12-03 Thread Johannes Wienke
Ok, so just as a start, the PATH of the shell is: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v3.5;C:\Windows\Microsoft.NET\Framework\v2.0.

Re: [CMake] Problem setting ENVIRONMENT for ctest

2010-12-03 Thread David Cole
Try just the single line: SET_TESTS_PROPERTIES(rsbtest PROPERTIES ENVIRONMENT "PATH=$ENV{PATH};${Boost_LIBRARY_DIRS}") Or... if there's still a \; problem with that call, then try it this way, reversing the ordering: SET_TESTS_PROPERTIES(rsbtest PROPERTIES ENVIRONMENT "PATH=${Boost_LIBRARY_DIRS};$

Re: [CMake] Problem setting ENVIRONMENT for ctest

2010-12-03 Thread Johannes Wienke
Hey, thanks for the quick reply. Am 03.12.2010 19:12 schrieb David Cole: > What version of cmake/ctest are you using? > (i.e. -- send the output of "cmake --version") On the windows machine (32 bit) where the problem is visible it is 2.8.3. I could also verify the generated CTestTestfile on linu

Re: [CMake] Problem setting ENVIRONMENT for ctest

2010-12-03 Thread David Cole
What version of cmake/ctest are you using? (i.e. -- send the output of "cmake --version") What does CTestTestfile.cmake contain if you change your CMakeLists file to use set_property(TEST ...) instead of set_tests_properties()? This should work as expected in CMake. We have a test in the test sui

[CMake] Problem setting ENVIRONMENT for ctest

2010-12-03 Thread Johannes Wienke
Dear all, I am try to set the PATH environment variable on windows for running the unit tests through ctest. The ctest file is generated by the cmake scripts. The PATH is required to for finding additional dlls required by the tests. I tried to set the PATH using this cmake code: SET(PATH_S

Re: [CMake] Linking archives in a sibling directory

2010-12-03 Thread Raymond Wan
Hi Michael, Thank you for your continued advice! On Fri, Dec 3, 2010 at 19:13, Michael Hertling wrote: > On 12/02/2010 03:13 PM, Raymond Wan wrote: >> ADD_SUBDIRECTORY (dir-A) >> >> before >> >> ADD_SUBDIRECTORY (main) >> >> then "main" will be built correctly? > > Even this is not necessary if

Re: [CMake] providing library information, what's the cmake way

2010-12-03 Thread Johannes Zarl
On Wednesday 01 December 2010 17:57:45 Johannes Zarl wrote: > Back to my proposed FPCHSA: My initial goal was to provide an interface > which does as much work as possible for you, maybe at the price of > restricted variable naming. So let's come up with a better interface: > > I do want to restri

Re: [CMake] find_package with ###Config.cmake

2010-12-03 Thread Andreas Pakulat
On 03.12.10 15:19:38, Micha Renner wrote: > > > Meanwhile, with 2.8.3 to be exact, the warning message issued by CMake > > if a version file is found but the requested version doesn't suit is: > > > > Could not find a configuration file for package "..." that is compatible > > with requested vers

Re: [CMake] find_package with ###Config.cmake

2010-12-03 Thread Micha Renner
> Meanwhile, with 2.8.3 to be exact, the warning message issued by CMake > if a version file is found but the requested version doesn't suit is: > > Could not find a configuration file for package "..." that is compatible > with requested version "...". > > The following configuration files were

Re: [CMake] Specify as in the toolchain

2010-12-03 Thread Andrea Galeazzi
chael __ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5670 (20101203) __ Il messaggio รจ stato controllato da ESET NOD32 Antivirus. www.nod32.it Probably my problem is simpler; that's my toolchain file for cross c

Re: [CMake] Specify as in the toolchain

2010-12-03 Thread Hendrik Sattler
Am Freitag, 3. Dezember 2010, 13:06:41 schrieb Andrea Galeazzi: > How can I specify the "as" command like I do for gcc or g++ compiler in > a toolchain? > SET(CMAKE_C_COMPILER "C:/Programmi/development/GCCARM/bin/gcc.exe") > http://www.cmake.org/Wiki/CMake/Assembler HS

Re: [CMake] Need some directions for non-trivial setup

2010-12-03 Thread Klaim
Thanks for pointing EXTERNAL_PROJECT , I've looked at it but can't understand how to get the path from outside. I'll try again see if I missed something about this feature and get back to you. The projects are almost all independent and I need to allow working with a clone of one subproject withou

Re: [CMake] find_package with ###Config.cmake

2010-12-03 Thread Michael Hertling
On 12/03/2010 08:45 AM, Andreas Pakulat wrote: > On 03.12.10 07:11:23, Micha Renner wrote: >> There is a small library "TLib" which is installed like this >> >> Install the project... >> -- Install configuration: "Debug" >> -- Installing: /usr/local/lib/libTLibd.so >> -- Installing: /usr/local/lib/

[CMake] Specify as in the toolchain

2010-12-03 Thread Andrea Galeazzi
How can I specify the "as" command like I do for gcc or g++ compiler in a toolchain? SET(CMAKE_C_COMPILER "C:/Programmi/development/GCCARM/bin/gcc.exe") ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://

Re: [CMake] Need some directions for non-trivial setup

2010-12-03 Thread Marcel Loose
>>> On 2-12-2010 at 16:12, in message , Klaim wrote: > Hi! > > I'm currently trying to understand how to use CMake for a non-trivial setup > of multiple-projects-framework. I'm a beginner at CMake (as developer I > mean, not as library user). > I've read the docs and I tried to read the Ogre pro

Re: [CMake] Linking archives in a sibling directory

2010-12-03 Thread Michael Hertling
On 12/02/2010 03:13 PM, Raymond Wan wrote: > Hi Michael, > > > On Thu, Dec 2, 2010 at 19:40, Michael Hertling wrote: >> On 12/01/2010 06:03 PM, Raymond Wan wrote: >>> Ah! I see. Then is it recommended that this top-level CMakeLists.txt >>> have just these lines, or should I move the ADD_EXECUT

Re: [CMake] find_package with ###Config.cmake

2010-12-03 Thread Micha Renner
Am Freitag, den 03.12.2010, 08:45 +0100 schrieb Andreas Pakulat: > On 03.12.10 07:11:23, Micha Renner wrote: > > There is a small library "TLib" which is installed like this > > > > Install the project... > > -- Install configuration: "Debug" > > -- Installing: /usr/local/lib/libTLibd.so > > -- In