Re: [CMake] Announcing CMake BASIS, a set of CMake based project interoperability and automation tools

2014-01-27 Thread Andreas Schuh
On Jan 24, 2014, at 10:49 AM, Stephen Kelly wrote: > > There seems to be some mailing list problems going on (maybe Andrew didn't > subscribe before posting... :/ Always subscribe to a mailing list before > posting...), and my reply was rejected. I had one rejected post because I was yet sub

Re: [CMake] Announcing CMake BASIS, a set of CMake based project interoperability and automation tools

2014-01-27 Thread Andreas Schuh
On Jan 24, 2014, at 12:49 PM, Stephen Kelly wrote: > Roger Leigh wrote: > >> On Thu, Jan 23, 2014 at 10:40:54AM +0100, Stephen Kelly wrote: >>> Andreas Schuh wrote: >>> >>>> On a side note, just today a co-worker asked me why the compiler cannot

Re: [CMake] Announcing CMake BASIS, a set of CMake based project interoperability and automation tools

2014-01-23 Thread Andreas Schuh
On Jan 23, 2014, at 4:17 PM, Stephen Kelly wrote: > Andreas Schuh wrote: > >> >> On Jan 23, 2014, at 1:11 PM, Andreas Schuh >> wrote: >> >>> >>> On Jan 23, 2014, at 9:40 AM, Stephen Kelly >>> wrote: >>>> >>

Re: [CMake] Announcing CMake BASIS, a set of CMake based project interoperability and automation tools

2014-01-23 Thread Andreas Schuh
On Jan 23, 2014, at 1:11 PM, Andreas Schuh wrote: > > On Jan 23, 2014, at 9:40 AM, Stephen Kelly wrote: >> >>>> Another example: You have code for adding scripts as executables. What >>>> are the generic (non-BASIS related) use cases for that? >>>

Re: [CMake] Announcing CMake BASIS, a set of CMake based project interoperability and automation tools

2014-01-23 Thread Andreas Schuh
On Jan 23, 2014, at 9:40 AM, Stephen Kelly wrote: > Andreas Schuh wrote: >> How often have you seen CMake code as the following >> >> add_executable(foo foo.cpp) >> >> ? > > I see executables with a single source file only in dummy test code, an

Re: [CMake] Announcing CMake BASIS, a set of CMake based project interoperability and automation tools

2014-01-23 Thread Andreas Schuh
Find one minor correction to my previous post below. On Jan 23, 2014, at 1:11 PM, Andreas Schuh wrote: > For example, in case of Python, you can “wrap” the script and have it act as > both Windows NT Script and Python script by adding the following line at the > top >

Re: [CMake] Announcing CMake BASIS, a set of CMake based project interoperability and automation tools

2014-01-22 Thread Andreas Schuh
Hi Steve and all, On Jan 23, 2014, at 12:47 AM, Andrew Hundt wrote: > > On Wed, Jan 22, 2014 at 5:44 PM, Stephen Kelly wrote: > Andrew Hundt wrote: > > > CMake BASIS is a set of utilities and standards created with the goal of > > making CMake projects and libraries very easy to create, shar

Re: [CMake] Links to online documentation of CMake broken

2012-06-11 Thread Andreas Schuh
Thanks! I can confirm that it works for me with Safari now. On Fri, Jun 8, 2012 at 10:17 AM, Brad King wrote: > On 06/07/2012 04:22 PM, Andreas Schuh wrote: >> I see. I am using Safari 5.1.7 on Mac OS X 10.6.8. > > We changed the redirection from server-side to JavaScript. >

Re: [CMake] Links to online documentation of CMake broken

2012-06-07 Thread Andreas Schuh
I see. I am using Safari 5.1.7 on Mac OS X 10.6.8. On Thu, Jun 7, 2012 at 3:51 PM, David Cole wrote: > It doesn't work in Safari either, from my Mac or from my iPad > > > On Thu, Jun 7, 2012 at 2:46 PM, Brad King wrote: >> >> On 06/07/2012 02:06 PM, Andreas Schuh

[CMake] Links to online documentation of CMake broken

2012-06-07 Thread Andreas Schuh
Hi, I noticed that the CMake documentation online has been updated and the URLs have changed. The main links are correctly rewritten to the new URLs, but the references to particular sections of the documents are discarded during this rewrite. This breaks many links in my documentation where I lin

Re: [CMake] Reading flags that have been added with add_definitions

2012-04-23 Thread Andreas Schuh
Hi Mathias, I simply guess that the reason for COMPILE_DEFINITIONS not including -pedantic is, that you actually use add_definitions() for something what it is not really intended for, i.e., the addition of compiler flags other than those which define preprocessor macros... maybe add_definitions()

Re: [CMake] Ignore install()

2012-04-23 Thread Andreas Schuh
Hi Stefan, one solution I can think about is overwriting the install() command before you traverse into these subdirectories and restoring the default CMake behavior afterwards, i.e., something like # overwrite install() command with a dummy macro that is a nop macro (install) endmacro () # conf

Re: [CMake] CTest: Glob files to include in coverage report with 0% line coverage

2012-01-25 Thread Andreas Schuh
http://www.rad.upenn.edu/sbia/software/doxygen/basis/trunk/html/group__BasisSettings.html#gab06414cfca0fcb6d2202e2e8a23cf009 On Wed, Jan 25, 2012 at 12:34 PM, Andreas Schuh wrote: > I am not sure where I found info on this variable, but the ITK/VTK > projects are always a good resource

Re: [CMake] CTest: Glob files to include in coverage report with 0% line coverage

2012-01-25 Thread Andreas Schuh
:51 AM, Eric Noulard wrote: >> 2012/1/24 Rolf Eike Beer : >>> Andreas Schuh wrote: >>>> Hi, >>>> >>>> Setting CTEST_EXTRA_COVERAGE_GLOB in the CTestCustom.cmake file can be >>>> used to add additional files which shall be included in

[CMake] CTest: Glob files to include in coverage report with 0% line coverage

2012-01-23 Thread Andreas Schuh
Hi, Setting CTEST_EXTRA_COVERAGE_GLOB in the CTestCustom.cmake file can be used to add additional files which shall be included in the coverage report. This is useful to ensure that files which are not covered by any test are still reported with 0% line coverage. I tried using absolute paths in t

Re: [CMake] Different memcheck options for different tests

2012-01-23 Thread Andreas Schuh
Hi Roland, have you considered writing a CTest script which you would run as follows: ctest -S your_script.ctest ? In your CTest script, you can use the commands ctest_start() ctest_configure() ctest_build() set (CTEST_MEMORYCHECK_COMMAND_OPTIONS "...") ctest_memcheck() where you include only

Re: [CMake] Double redefinition of commands...

2011-05-24 Thread Andreas Schuh
I just realized that the second solution has one flaw. You will need to reset the guard variable in the root CMakeLists.txt file via set (CUSTOM_COMMANDS_INCLUDED 0 CACHE INTERNAL "" FORCE) --Andreas On May 24, 2011, at 10:37 AM, Andreas Schuh wrote: > Hi Theodore, > >

Re: [CMake] Double redefinition of commands...

2011-05-24 Thread Andreas Schuh
Hi Theodore, Your observation is interesting, I had expected CMake to not remember function definitions across subtrees similar to non-cached variables. Apparently, it does not store function and macro definitions on a stack. However, what you still could do is either one of the following or ma