Re: [CMake] Forcing 'out-of-source' build

2010-11-26 Thread Andreas Mohr
Hi, On Sat, Nov 27, 2010 at 01:11:06AM -0500, cmake-requ...@cmake.org wrote: > Message: 5 > Date: Fri, 26 Nov 2010 15:55:55 -0600 > From: j s > Subject: Re: [CMake] Forcing 'out-of-source' build > To: Eric Noulard > I'd recommend this: > touch CMakeCache.txt > touch CMakeFiles > > Check said

Re: [CMake] Relink on library rebuild dilema

2010-11-26 Thread Michael Hertling
On 11/26/2010 05:00 PM, Sebastian Schaetz wrote: > Hi, > > I have a somewhat weird setup to build binaries for the Cell processor: > > |-- CMakeLists.txt > |-- kernels > | |-- CMakeLists.txt > | `-- kernel.cpp > `-- main.cpp > > From the main.cpp in the root directory the executable is built

[CMake] cmake config.h

2010-11-26 Thread luxInteg
Greetings, I am learning cmake. I have a package that compiles fine with autoconf but fails with cmake. (The former generates automatically a required header-file config.h ) I have checked the cmake mailing list to see if the autoheader utility has been ported to cmake. This seems uncle

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

2010-11-26 Thread Johannes Zarl
On Friday 26 November 2010 10:49:01 Eric Noulard wrote: > > From the information in http://www.cmake.org/Wiki/CMake_Released_Versions > > and using some shell-scripts to create the diffs between all > > "neighbor-versions", it's not too much work to create a compatibility > > matrix for the documen

Re: [CMake] Forcing 'out-of-source' build

2010-11-26 Thread j s
I'd recommend this: touch CMakeCache.txt touch CMakeFiles Check said files into your revision control system. The fact that it can't create a directory alone makes cmake freak out almost immediately. Juan On Fri, Nov 26, 2010 at 3:06 PM, Eric Noulard wrote: > 2010/11/26 Wylie, Brian : > > Hi A

Re: [CMake] Forcing 'out-of-source' build

2010-11-26 Thread Eric Noulard
2010/11/26 Wylie, Brian : > Hi All, > > I want to force an 'out-of-source' build for a small project that I converted > to use Cmake. > > I did a bit of searching and found variants of the following... > > # Make sure the build is out of source > STRING(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE

Re: [CMake] [Titan-developers] Forcing 'out-of-source' build

2010-11-26 Thread Marcus D. Hanwell
On Fri, Nov 26, 2010 at 3:24 PM, Wylie, Brian wrote: > Hi All, > > I want to force an 'out-of-source' build for a small project that I converted > to use Cmake. > > I did a bit of searching and found variants of the following... > > # Make sure the build is out of source > STRING(COMPARE EQUAL "$

Re: [CMake] [Titan-developers] Forcing 'out-of-source' build

2010-11-26 Thread Dave Partyka
I am not sure if you can prevent it from generating those files but you could remove those files with file(REMOVE ...) in your IF(insource) block. On Fri, Nov 26, 2010 at 3:24 PM, Wylie, Brian wrote: > Hi All, > > I want to force an 'out-of-source' build for a small project that I > converted to

[CMake] Forcing 'out-of-source' build

2010-11-26 Thread Wylie, Brian
Hi All, I want to force an 'out-of-source' build for a small project that I converted to use Cmake. I did a bit of searching and found variants of the following... # Make sure the build is out of source STRING(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" insource) IF(insource)

Re: [CMake] set_source_files_properties for includedirectories

2010-11-26 Thread Michael Hertling
On 11/26/2010 09:40 AM, Andrea Galeazzi wrote: > Michael Hertling ha scritto: >> On 11/23/2010 03:23 PM, Andrea Galeazzi wrote: >> >>> Marcel Loose ha scritto: >>> >>> On 23-11-2010 at 10:55, in message<4ceb8f76.80...@korg.it>, Andrea >>> >>> Galeazzi

[CMake] Relink on library rebuild dilema

2010-11-26 Thread Sebastian Schaetz
Hi, I have a somewhat weird setup to build binaries for the Cell processor: |-- CMakeLists.txt |-- kernels | |-- CMakeLists.txt | `-- kernel.cpp `-- main.cpp >From the main.cpp in the root directory the executable is built. In the kernels folder strange things (have to) happen: first the k

[CMake] Kitware at RSNA in Chicago next week

2010-11-26 Thread Lisa Avila
If you plan to be in Chicago next week for the 96th Scientific Assembly and Annual Meeting of the Radiological Society of North America (RSNA), please stop by the Kitware exhibit at booth number 1305, Lakeside Hall D. We will be highlighting the many open source algorithms, resources, and tools ava

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-26 Thread Zach Mullen
I just realized why this isn't working -- it's actually not a regression. In this release we decided that the costs should only be taken into account in a parallel case (ctest -j N). Many users have implicit dependencies based on the order of their add_test calls, so we didn't want to break backw

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-26 Thread Zach Mullen
On Tue, Nov 23, 2010 at 6:02 PM, David Cole wrote: > It might be due to this commit: > > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=142edf8ad4baccd991a6a8a3e5283d0b575acca2 > (first released in 2.8.3) > > Or this one: > > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b4d27dc041c9164d

[CMake] Trouble with set_test_properties

2010-11-26 Thread tibur
Hello. I have some trouble with set_test_properties function. Let's say I want to add something to the environment (DLL path for instance). I use the following code in my CMakeLists.txt: set_tests_properties(Prog PROPERTIES ENVIRONMENT "CONFIG=${CTEST_CONFIGURATION_TYPE}") When processed by

Re: [CMake] How to get the current date

2010-11-26 Thread ycollette . nospam
Hello, The version found in the archive doesn't works under windows XP 64 bits. So here is a little modified one (date seems to be a command from the cmd executable ...): MACRO (TODAY RESULT) IF (WIN32) EXECUTE_PROCESS(COMMAND "cmd" " /C date /T" OUTPUT_VARIABLE ${RESULT}) s

[CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-26 Thread Diablo 666
> And *NEVER EVER* set CMAKE_INSTALL_PREFIX in your CMakeLists.txt file. > That is a user-setting and you will make people angry at you if you > override their choice in your code. There is actually one single use-case where it might be useful to change this variable once: Say you have a library

Re: [CMake] How to get the current date

2010-11-26 Thread ycollette . nospam
Thanks for the link: http://www.cmake.org/pipermail/cmake/2009-February/027014.html seems to answer my question. YC - Mail Original - De: "Eric Noulard" À: "ycollette nospam" Cc: "cmake" Envoyé: Vendredi 26 Novembre 2010 13h35:30 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockh

Re: [CMake] How to get the current date

2010-11-26 Thread Eric Noulard
2010/11/26 : > Hello, > > Is it possible in a CMakeLists.txt file to get the current date (under linux > and windows) ? > I would like to store this date in a cmake variable so as to write it in a .h > file. CMake has no builtin for that but if you search the ML archive http://www.cmake.org/Wik

[CMake] How to get the current date

2010-11-26 Thread ycollette . nospam
Hello, Is it possible in a CMakeLists.txt file to get the current date (under linux and windows) ? I would like to store this date in a cmake variable so as to write it in a .h file. YC ___ Powered by www.kitware.com Visit other Kitware open-source p

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

2010-11-26 Thread Eric Noulard
2010/11/25 Johannes Zarl : > On Wednesday 24 November 2010 19:03:21 David Cole wrote: >> On Wed, Nov 24, 2010 at 12:58 PM, Tyler Roscoe wrote: >> > On Wed, Nov 24, 2010 at 11:41:46AM -0500, David Cole wrote: >> >> On Wed, Nov 24, 2010 at 11:34 AM, Rolf Eike Beer wrote: >> >> > So I think it is _r

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

2010-11-26 Thread Marcel Loose
>>> On 25-11-2010 at 17:34, in message <201011251734.55788.johannes.z...@jku.at>, Johannes Zarl wrote: > I took the liberty and compiled such a compatibility matrix here: > http://www.cmake.org/Wiki/CMake_Version_Compatibility_Matrix > > It's a draft and does not (yet) contain information about

Re: [CMake] set_source_files_properties for includedirectories

2010-11-26 Thread Andrea Galeazzi
Michael Hertling ha scritto: On 11/23/2010 03:23 PM, Andrea Galeazzi wrote: Marcel Loose ha scritto: On 23-11-2010 at 10:55, in message <4ceb8f76.80...@korg.it>, Andrea Galeazzi