Re: [cmake-developers] Setting target properties before the target is defined ?

2013-02-18 Thread Brad King
On 02/17/2013 10:26 AM, Alexander Neundorf wrote: On Sunday 17 February 2013, Alexander Neundorf wrote: On Sunday 17 February 2013, Brad King wrote: to use a directory property and then have the generate-time check look in the current directory and up. That will avoid problems with

Re: [cmake-developers] Setting target properties before the target is defined ?

2013-02-18 Thread Brad King
On 02/17/2013 10:00 AM, Alexander Neundorf wrote: On Sunday 17 February 2013, Brad King wrote: Just to make sure I understand correctly, you're bringing up a use case where an imported target's dependencies are not satisfied but it does not matter when the imported target is not used by the

Re: [cmake-developers] Adding automatic checks for required targets in target-export files ?

2013-02-18 Thread Brad King
On 02/17/2013 01:08 PM, Alexander Neundorf wrote: I haven't yet figured out a good way how to add a test which tests the error case. Is there a better way than duplicating most of ExportImport/ ? Testing an error case is often a PITA, but it is important since the entire point of this feature

Re: [cmake-developers] Setting ExactCase_FOUND in FPHSA

2013-02-18 Thread Stephen Kelly
Alexander Neundorf wrote: On Friday 15 February 2013, Stephen Kelly wrote: Hi, FindPackageHandleStandardArgs sets an uppercase found variable, but not an ExactCase_FOUND variable. This is inconsistent with how config files work. It also imposes on users the necessity that their FOUND

Re: [cmake-developers] [PATCH 0/2] Fix some minor annoyances in Xcode generator.

2013-02-18 Thread Brad King
On 02/17/2013 11:20 AM, Alexander Chehovsky wrote: Also, forgot to note that patch Fixed nested source group handling in Xcode generator. resolves this bug: http://public.kitware.com/Bug/view.php?id=12943 I've actually posted a patch there some time ago, but it was not noticed, apparently.

[cmake-developers] [CMake 0013932]: Invalid PIC option being passed to the NAG Fortran compiler

2013-02-18 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=13932 == Reported By:Neil Carlson Assigned To:

Re: [cmake-developers] Setting ExactCase_FOUND in FPHSA

2013-02-18 Thread Alexander Neundorf
On Monday 18 February 2013, Stephen Kelly wrote: Alexander Neundorf wrote: On Friday 15 February 2013, Stephen Kelly wrote: Hi, FindPackageHandleStandardArgs sets an uppercase found variable, but not an ExactCase_FOUND variable. This is inconsistent with how config files work. It

[cmake-developers] [CMake 0013933]: CTest should delete files if compilation failed

2013-02-18 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=13933 == Reported By:Mathias Gaunard Assigned To:

Re: [cmake-developers] Setting target properties before the target is defined ?

2013-02-18 Thread Alexander Neundorf
On Monday 18 February 2013, Brad King wrote: On 02/17/2013 10:00 AM, Alexander Neundorf wrote: On Sunday 17 February 2013, Brad King wrote: Just to make sure I understand correctly, you're bringing up a use case where an imported target's dependencies are not satisfied but it does not

Re: [cmake-developers] Setting target properties before the target is defined ?

2013-02-18 Thread Brad King
On 02/18/2013 12:33 PM, Alexander Neundorf wrote: Or do we allow broken targets to exist (but not to be used) Yes, this should be allowed IMO. The target import files are effectively declarative and evaluation of dependencies should be lazy. It wasn't that long ago that we started supporting

Re: [cmake-developers] Setting target properties before the target is defined ?

2013-02-18 Thread Alexander Neundorf
On Monday 18 February 2013, Brad King wrote: On 02/18/2013 12:33 PM, Alexander Neundorf wrote: Or do we allow broken targets to exist (but not to be used) Yes, this should be allowed IMO. The target import files are effectively declarative and evaluation of dependencies should be lazy.

Re: [cmake-developers] Adding automatic checks for required targets in target-export files ?

2013-02-18 Thread Alexander Neundorf
On Monday 18 February 2013, Brad King wrote: On 02/17/2013 01:08 PM, Alexander Neundorf wrote: I haven't yet figured out a good way how to add a test which tests the error case. Is there a better way than duplicating most of ExportImport/ ? Testing an error case is often a PITA, but it

Re: [cmake-developers] Setting target properties before the target is defined ?

2013-02-18 Thread Brad King
On 02/18/2013 01:32 PM, Alexander Neundorf wrote: On Monday 18 February 2013, Brad King wrote: On 02/18/2013 12:33 PM, Alexander Neundorf wrote: Or do we allow broken targets to exist (but not to be used) Yes, this should be allowed IMO. The target import files are effectively declarative

Re: [cmake-developers] Setting ExactCase_FOUND in FPHSA

2013-02-18 Thread Stephen Kelly
Alexander Neundorf wrote: I mean, even if FPHSA would set ExactCase_FOUND always by default, there still would be no guarantee at all that after a find_package(Foo) Foo_FOUND will be set, because as a user of that module I don't know whether it uses FPHSA or not. I have to read the

Re: [cmake-developers] Setting ExactCase_FOUND in FPHSA

2013-02-18 Thread Brad King
On 02/18/2013 04:52 PM, Stephen Kelly wrote: Anyway, I don't agree with your conclusion, but I guess Brad gets the casting vote of doing nothing or not. I understand your position and you understand mine I'm sure. All that's needed is to decide :). One thing that has always bothered me about

Re: [cmake-developers] Setting ExactCase_FOUND in FPHSA

2013-02-18 Thread Rolf Eike Beer
Am Montag, 18. Februar 2013, 17:17:40 schrieb Brad King: On 02/18/2013 04:52 PM, Stephen Kelly wrote: Anyway, I don't agree with your conclusion, but I guess Brad gets the casting vote of doing nothing or not. I understand your position and you understand mine I'm sure. All that's needed is

[cmake-developers] Failures re bzip2 in the dashboard

2013-02-18 Thread Stephen Kelly
Hi there, I was able to reproduce an earlier build failure on the dashboard: http://open.cdash.org/viewTest.php?onlyfailedbuildid=2816863 but I've not been able to reproduce this one: http://open.cdash.org/viewTest.php?onlyfailedbuildid=2817816 I'll not get any chance to fix it this

Re: [CMake] Bad flags being passed to NAG Fortran compiler

2013-02-18 Thread Petr Kmoch
Hi Neil. I can only answer your question 3: there are variables like CMAKE_Fortran_COMPILER and CMAKE_Fortran_COMPILER_ID which you could use for this purpose. They're documented as CMAKE_LANG_COMPILER etc. under Variables for Languages. Petr On Mon, Feb 18, 2013 at 1:13 AM, Neil Carlson

Re: [CMake] Bad flags being passed to NAG Fortran compiler

2013-02-18 Thread Alan W. Irwin
Hi Neil: I have no experience with the NAG Fortran compiler, but just to get the discussion rolling, I think I can guess at the answer to your principal question below. On 2013-02-17 17:13-0700 Neil Carlson wrote: When building a shared library using the NAG Fortran compiler, cmake is

[CMake] Remove _MBCS

2013-02-18 Thread YanmingZou
Hi, I am developing an application on windows with VS2012 and CMake (2.8.10.2). I want to use unicode in my program, so I add UNICODE and _UNICODE with ADD_DEFINITIONS. However, there is always a _MBCS marco in the generated project file. The project can be compiled, but I am not happy with

Re: [CMake] comparing strings

2013-02-18 Thread Shaun Williams
Thanks, I will be using this method: if (myvar MATCHES ^somestring$) endif() Do NOT use ${myvar} because that forces CMake to treat the value of myvar as a variable name if it exists. That will give you accidentally indirection that may point to the value of another string. On Fri, Feb 15,

Re: [CMake] Bad flags being passed to NAG Fortran compiler

2013-02-18 Thread Neil Carlson
Thanks Petr, the ID variable was exactly what I needed. On Mon, Feb 18, 2013 at 1:24 AM, Alan W. Irwin ir...@beluga.phys.uvic.cawrote: I would also try setting set(CMAKE_Fortran_COMPILE_**OPTIONS_PIC -PIC) in Modules/Compiler/NAG-Fortran.**cmake as well to see if that completely satisfies

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2164-ga4654bb

2013-02-18 Thread Stephen Kelly
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 a4654bb86a47bed11b702e3c09f0d7c77f2d6dff (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2171-g392dbd4

2013-02-18 Thread Stephen Kelly
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 392dbd47ff50d84da14df6096771da0fbf713d1c (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2176-g1732a49

2013-02-18 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 1732a497c138c358229cde071a333c0ff645ab57 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2182-g523cf8a

2013-02-18 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 523cf8a7d69df6442bd63023f3925451520bf04a (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2184-g95d2dd8

2013-02-18 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 95d2dd810fc97b17a8516f5f6488aae3ee0c3c13 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2186-g0579f06

2013-02-18 Thread Stephen Kelly
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 0579f0660dab2bf8743e0ee8ee29b63d5cd5631d (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.10.2-699-gdea92c2

2013-02-18 Thread Kitware Robot
Stamp diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index bead8fb..384c26b 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -2,5 +2,5 @@ set(CMake_VERSION_MAJOR 2) set(CMake_VERSION_MINOR 8) set(CMake_VERSION_PATCH 10) -set(CMake_VERSION_TWEAK 20130218