Re: [cmake-developers] Review request: FindTBB module

2016-03-31 Thread Andreas Schuh
Hi all, I also came across these FindTBB modules while in need for one. As the more recent one from the OGRE project did not support MSVS 2015 yet, and also does not create import targets for a more convenient and “modern” CMake use of the TBB library targets, I wrote my own module. Features:

[cmake-developers] Fwd: [CMake 0016022]: GenerateExportHeader DEFINE_NO_DEPRECATED define conflicts

2016-03-19 Thread Andreas Schuh
== > https://cmake.org/Bug/view.php?id=16022 > ========== > Reported By:Andreas Schuh > Assigned To: > == > Project:

Re: [cmake-developers] Allow ALIAS of IMPORTED targets

2015-09-18 Thread Andreas Schuh
Hi, Being able to alias imported targets would be a great feature. Just an addition to the exports discussion, I also don't think it is necessary. Besides the EXPORT_NAME property I was not aware of either, I would instead expect to see an add_library (old_name ALIAS new_name) in the

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 steve...@gmail.com 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 find the header files when they were

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 steve...@gmail.com 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

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 andreas.schuh...@gmail.com 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-23 Thread Andreas Schuh
On Jan 23, 2014, at 9:40 AM, Stephen Kelly steve...@gmail.com 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, and even then add_executable(foo

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 andreas.schuh...@gmail.com wrote: On Jan 23, 2014, at 9:40 AM, Stephen Kelly steve...@gmail.com wrote: Another example: You have code for adding scripts as executables. What are the generic (non-BASIS related) use cases for that? You can

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 steve...@gmail.com wrote: Andreas Schuh wrote: On Jan 23, 2014, at 1:11 PM, Andreas Schuh andreas.schuh...@gmail.com wrote: On Jan 23, 2014, at 9:40 AM, Stephen Kelly steve...@gmail.com wrote: Another example: You have code for adding

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 athu...@gmail.com wrote: On Wed, Jan 22, 2014 at 5:44 PM, Stephen Kelly steve...@gmail.com wrote: Andrew Hundt wrote: CMake BASIS is a set of utilities and standards created with the goal of making CMake projects and

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 brad.k...@kitware.com 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. Now

[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

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 david.c...@kitware.com 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 brad.k...@kitware.com wrote: On 06/07/2012 02:06 PM, Andreas

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 () #

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

[cmake-developers] Improved FindPythonInterp.cmake module

2012-04-12 Thread Andreas Schuh
Hi CMake folks, I run into a problem with CMake 2.8.4 which relates to the bug http://public.kitware.com/Bug/view.php?id=12338 . In particular, the issue that not the default python executable was found, but the most recent version that is installed. Thus, before noticing that this seems to be

Re: [cmake-developers] Improved FindPythonInterp.cmake module

2012-04-12 Thread Andreas Schuh
Indeed, I should have looked at the most recent version instead of this old patch found in the bug tracker. That module looks great. On Thu, Apr 12, 2012 at 12:34 PM, Rolf Eike Beer e...@sf-mail.de wrote: Am Donnerstag, 12. April 2012, 11:57:10 schrieb Andreas Schuh: Hi CMake folks, I run

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

2012-01-25 Thread Andreas Schuh
eric.noul...@gmail.com wrote: 2012/1/24 Rolf Eike Beer e...@sf-mail.de: 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 the coverage report. This is useful to ensure that files which

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 andreas.schuh...@googlemail.com wrote: I am not sure where I found info on this variable, but the ITK/VTK projects

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

[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

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