Re: [cmake-developers] Setting include directories via target_link_libraries() ?

2012-12-11 Thread Matthew Woehlke

On 2012-12-11 08:35, Brad King wrote:

Another idea is to simply not allow both commands to be used on a given
target.  Since the new command does not yet exist this cannot break any
existing projects.  One must either specify everything by the new command
or everything by the old command.


How would this work when a target needs to link to some package that 
does not provide exported interfaces? (Thinking of most existing 
module-based find_package stuff, here...) Does it take library paths? 
Include paths? What about broken find modules that require linking to 
their libraries with link_directories() + tll(library name without path)?


--
Matthew

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [CMake] Include_directories looks for Boost twice / Problem with if statement

2012-12-11 Thread Raymond Wan
Hi Jakub,


On Fri, Dec 7, 2012 at 4:46 PM, Jakub Zakrzewski jzakrzew...@e2e.ch wrote:
 Hi
 Did you think about something like this:

 ADD_DEFINITIONS (-DBOOST_ALL_NO_LIB)
 SET (BOOST_ROOT $ENV{BOOST_ROOT})
 SET (Boost_NO_SYSTEM_PATHS ON)
 SET (Boost_USE_MULTITHREADED ON)
 SET (Boost_USE_STATIC_RUNTIME OFF)
 IF (TARGET parent)
 FIND_PACKAGE (Boost 1.42.0 REQUIRED COMPONENTS system)
   IF (Boost_FOUND)
 LINK_DIRECTORIES (${Boost_LIBRARY_DIRS})
 INCLUDE_DIRECTORIES (${Boost_INCLUDE_DIRS})
 TARGET_LINK_LIBRARIES (parent ${Boost_LIBRARIES})
   ENDIF ()
 ENDIF (TARGET parent)


How embarrassing...yes, what you suggested of just putting the search
in the IF statement worked.  Unfortunately, getting it right made me
realize I had problems elsewhere in my CMakeLists.txt (in particular,
it wasn't conditionally defining the target properly).

In the end, I added:

IF (${PROJECT_NAME} STREQUAL )
PROJECT (child CXX)
ENDIF (${PROJECT_NAME} STREQUAL )

and likewise to the ADD_EXECUTABLE () in all of my CMakeLists.txt.  I
don't know if this is the right way to do it, but it seems ok so
far...

Yes, in hindsight, what you suggested was obvious but I was so fixated
on something more complicated; the obvious eluded me!  Thank you for
your help!

Ray
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] static and dynamic libraries based on configuration type

2012-12-11 Thread David Cole
You can't do it with CMake as-is on a per configuration basis.


On Mon, Dec 10, 2012 at 11:18 PM, Matt Campbell ma...@nvidia.com wrote:

 Hi,

 ** **

 In Visual Studio, I can have a project set to build as a static lib in one
 configuration and a dynamic lib in another configuration. I cannot figure
 out how to accomplish this in cmake. If I add two targets, one as STATIC
 and one as SHARED the targets are added to all configuration types.

 ** **

 Thanks in advance.

 ** **

 -Matt
  --
  This email message is for the sole use of the intended recipient(s) and
 may contain confidential information.  Any unauthorized review, use,
 disclosure or distribution is prohibited.  If you are not the intended
 recipient, please contact the sender by reply email and destroy all copies
 of the original message.
  --


 --

 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the CMake FAQ at:
 http://www.cmake.org/Wiki/CMake_FAQ

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-11 Thread Stephen Kelly
John Drescher wrote:

 I emailed before about reviewing Config files that are being shipped with
 Qt 5 and got great feedback:

  
http://thread.gmane.org/gmane.comp.kde.devel.buildsystem/7165/focus=41551

 Now that Qt 5 beta 2 is out, I'd like to ask for feedback again on
 anything that can still be changed before Qt 5.0. Note that Qt 5 beta 1
 was broken regarding cmake files on Windows and Mac. As those are not
 primary platforms for me, I'd particularly appreciate feedback on those.

 You can download Qt 5 beta 2 here:

  http://qt-project.org/downloads

 Known issues are here:

  http://qt-project.org/wiki/Qt500beta2KnownIssues

 cmake related documentation is here:

  http://doc-snapshot.qt-project.org/5.0/qtdoc/cmake-manual.html

 unit tests are here:

  https://qt.gitorious.org/qt/qtbase/trees/master/tests/auto/cmake

 Thanks for any feedback!

 
 I will try to take a look at this on a windows 7 x64 test box when I can.

Thanks for the offer. Did anything come of this?

Note that an RC1 was released in the mean-time:

 http://qt-project.org/downloads

That does not change anything with regard to the CMake files however.

Another RC will be released in the coming days, and within about 2 weeks 
we'll have the 5.0 final. Feedback is mostly welcomed before that. 

Feedback on that release will be welcomed too of course, but if anything 
needs changing, the release is already out so people will be already 
affected :).

Thanks,

Steve.


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-11 Thread John Drescher
On Tue, Dec 11, 2012 at 12:02 PM, Stephen Kelly steve...@gmail.com wrote:
 John Drescher wrote:

 I emailed before about reviewing Config files that are being shipped with
 Qt 5 and got great feedback:


 http://thread.gmane.org/gmane.comp.kde.devel.buildsystem/7165/focus=41551

 Now that Qt 5 beta 2 is out, I'd like to ask for feedback again on
 anything that can still be changed before Qt 5.0. Note that Qt 5 beta 1
 was broken regarding cmake files on Windows and Mac. As those are not
 primary platforms for me, I'd particularly appreciate feedback on those.

 You can download Qt 5 beta 2 here:

  http://qt-project.org/downloads

 Known issues are here:

  http://qt-project.org/wiki/Qt500beta2KnownIssues

 cmake related documentation is here:

  http://doc-snapshot.qt-project.org/5.0/qtdoc/cmake-manual.html

 unit tests are here:

  https://qt.gitorious.org/qt/qtbase/trees/master/tests/auto/cmake

 Thanks for any feedback!


 I will try to take a look at this on a windows 7 x64 test box when I can.

 Thanks for the offer. Did anything come of this?


I had some trouble building a x64 version of Qt 5.0 beta2 but then
after getting past that I found out that vtk-5.10.X would not work
with Qt5 so it pretty much ended what I wanted to test since pretty
much all of my current code uses vtk.

John
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] static and dynamic libraries based on configuration type

2012-12-11 Thread Matt Campbell
Ok, that's the conclusion I came to as well. That being said, CMake's approach 
is fine too.

Thanks.

-Matt

From: David Cole [mailto:david.c...@kitware.com]
Sent: Tuesday, December 11, 2012 10:41 AM
To: Matt Campbell
Cc: cmake@cmake.org
Subject: Re: [CMake] static and dynamic libraries based on configuration type

You can't do it with CMake as-is on a per configuration basis.

On Mon, Dec 10, 2012 at 11:18 PM, Matt Campbell 
ma...@nvidia.commailto:ma...@nvidia.com wrote:
Hi,

In Visual Studio, I can have a project set to build as a static lib in one 
configuration and a dynamic lib in another configuration. I cannot figure out 
how to accomplish this in cmake. If I add two targets, one as STATIC and one as 
SHARED the targets are added to all configuration types.

Thanks in advance.

-Matt

This email message is for the sole use of the intended recipient(s) and may 
contain confidential information.  Any unauthorized review, use, disclosure or 
distribution is prohibited.  If you are not the intended recipient, please 
contact the sender by reply email and destroy all copies of the original 
message.


--

Powered by www.kitware.comhttp://www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] COMPILE_DEFINITIONS

2012-12-11 Thread John Drescher
On Tue, Dec 11, 2012 at 2:24 PM, John Drescher dresche...@gmail.com wrote:
 My goal is to a specific definition to the Debug and RelWithDebInfo
 configurations for all targets in the project but not to the Release
 configuration when using VisualStudio. I believe that
 COMPILE_DEFINITIONSCONFIG appears to support this however I am
 unsure if I have to get the previous value of the COMPILE_DEFINITIONS
 before setting the new value?



It looks like

set_property(
DIRECTORY
APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG MyDef
)

set_property(
DIRECTORY
APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO MyDef
)

is what I am after.

John
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] WinGDB generator

2012-12-11 Thread sbell

Hello,
 
I've been using the WinGDB Visual Studio plugin to develop for an embedded 
linux board we're making in house. We've got a hacked-together set of CMake 
files that generate:
 
* Make files (which are run using an arm cross-compiler)
* Visual Studio project/solution files
 * a WinGDB settings xml dump -- which we have to manually import into the 
visual studio project/solution
 
I'm thinking about writing a CMake generator to do all of this. Has anyone here 
already done something like this? Is there are better way to go about getting 
what I need?
 
Thanks,
 
Stephen--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] CC, CXX ( Fortran) compiler version - CMake macros wanted

2012-12-11 Thread Ilias Miroslav
Dear CMake experts,

I appreciate your efforts resulting into the introduction of the 
CMAKE_[C|CXX]_COMPILER_VERSION variables from  CMake version 2.8.10 
( http://www.cmake.org/pipermail/cmake/2012-January/048596.html ).

However, I  would need also the CMAKE_Fortran_COMPILER_VERSION variable. 
Likewise we are working with older versions of CMake.

For that reason I was searching for macros setting CMAKE_C_COMPILER_VERSION, 
but found none:
mil...@..fpv.umb.sk:~/work/programming/cmake_2.8.10.2/cmake-2.8.10.2/.grep 
CMAKE_C_COMPILER_VERSION * */* */*/*
Modules/CMakeCCompiler.cmake.in:set(CMAKE_C_COMPILER_VERSION 
@CMAKE_C_COMPILER_VERSION@)
Modules/GenerateExportHeader.cmake:  elseif(CMAKE_COMPILER_IS_GNUC AND 
CMAKE_C_COMPILER_VERSION VERSION_LESS 4.2)
Modules/Platform/Windows-MSVC.cmake:  if(CMAKE_C_COMPILER_VERSION)
Modules/Platform/Windows-MSVC.cmake:set(_compiler_version 
${CMAKE_C_COMPILER_VERSION})
Modules/Platform/Windows-wcl386.cmake:  if(CMAKE_C_COMPILER_VERSION)
Modules/Platform/Windows-wcl386.cmake:set(_compiler_version 
${CMAKE_C_COMPILER_VERSION})
Tests/SystemInformation/SystemInformation.in:CMAKE_C_COMPILER_VERSION == 
${CMAKE_C_COMPILER_VERSION}

Would it be possible to distribute also CMake source files which are  setting 
the MAKE_[C|CXX]_COMPILER_VERSION  variables ? I would like to use them as 
template for setting the CMAKE_Fortran_COMPILER_VERSION variable.

Best, Miro
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-11 Thread Stephen Kelly
John Drescher wrote:
 
 I had some trouble building a x64 version of Qt 5.0 beta2 but then
 after getting past that I found out that vtk-5.10.X would not work
 with Qt5 so it pretty much ended what I wanted to test since pretty
 much all of my current code uses vtk.

I see. I just tried building VTK master in my Qt 4 environment, and I can't 
figure out how to build the Qt parts of it. 

I'm sure it's easy to port to Qt 5, but if I can't figure out how to build 
the Qt parts at all, then I can't do that.

Thanks,

Steve.


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-11 Thread David Cole
In VTK 'master' -- if you turn on the VTK_Group_Qt CMake option, either
in the gui, or by -D on the command line, then all the Qt-related modules
will be enabled.

In VTK 5.10, there were some other configure time options (I'd have to go
look them up or try it out) to control building the Qt-related bits...



On Tue, Dec 11, 2012 at 5:20 PM, Stephen Kelly steve...@gmail.com wrote:

 John Drescher wrote:
 
  I had some trouble building a x64 version of Qt 5.0 beta2 but then
  after getting past that I found out that vtk-5.10.X would not work
  with Qt5 so it pretty much ended what I wanted to test since pretty
  much all of my current code uses vtk.

 I see. I just tried building VTK master in my Qt 4 environment, and I can't
 figure out how to build the Qt parts of it.

 I'm sure it's easy to port to Qt 5, but if I can't figure out how to build
 the Qt parts at all, then I can't do that.

 Thanks,

 Steve.


 --

 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the CMake FAQ at:
 http://www.cmake.org/Wiki/CMake_FAQ

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-11 Thread John Drescher
 In VTK 5.10, there were some other configure time options (I'd have to go
 look them up or try it out) to control building the Qt-related bits...


In vtk-5.X you needed to enable VTK_USE_GUISUPPORT then that gave you
the ability to enable VTK_USE_QT

John
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-11 Thread Clinton Stimpson

I took a peek at building it earlier with Qt5.

I started making changes and one of the more surprising ones was that 
#include QtGui/QWidget
pulled in my Qt4 QWidget from /usr/include/QtGui/QWidget.
Instead of Qt5's QtWidgets/QWidget.  That led to confusing linker errors.

I got as far as trying to build some examples, but many of the examples seem 
to be broken.  Does anyone know if the master branch has become stable and 
whether functionality and examples have been restored since the start of the 
breaking modularization changes months ago?
I stopped when I saw these kinds of build problems.


On Tuesday, December 11, 2012 05:24:37 PM David Cole wrote:
 In VTK 'master' -- if you turn on the VTK_Group_Qt CMake option, either
 in the gui, or by -D on the command line, then all the Qt-related modules
 will be enabled.
 
 In VTK 5.10, there were some other configure time options (I'd have to go
 look them up or try it out) to control building the Qt-related bits...
 
 On Tue, Dec 11, 2012 at 5:20 PM, Stephen Kelly steve...@gmail.com wrote:
  John Drescher wrote:
   I had some trouble building a x64 version of Qt 5.0 beta2 but then
   after getting past that I found out that vtk-5.10.X would not work
   with Qt5 so it pretty much ended what I wanted to test since pretty
   much all of my current code uses vtk.
  
  I see. I just tried building VTK master in my Qt 4 environment, and I
  can't
  figure out how to build the Qt parts of it.
  
  I'm sure it's easy to port to Qt 5, but if I can't figure out how to build
  the Qt parts at all, then I can't do that.
  
  Thanks,
  
  Steve.
  
  
  --
  
  Powered by www.kitware.com
  
  Visit other Kitware open-source projects at
  http://www.kitware.com/opensource/opensource.html
  
  Please keep messages on-topic and check the CMake FAQ at:
  http://www.cmake.org/Wiki/CMake_FAQ
  
  Follow this link to subscribe/unsubscribe:
  http://www.cmake.org/mailman/listinfo/cmake
-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-11 Thread David Cole
Question for the VTK list


On Tue, Dec 11, 2012 at 5:34 PM, Clinton Stimpson clin...@elemtech.comwrote:


 I took a peek at building it earlier with Qt5.

 I started making changes and one of the more surprising ones was that
 #include QtGui/QWidget
 pulled in my Qt4 QWidget from /usr/include/QtGui/QWidget.
 Instead of Qt5's QtWidgets/QWidget.  That led to confusing linker errors.

 I got as far as trying to build some examples, but many of the examples
 seem
 to be broken.  Does anyone know if the master branch has become stable and
 whether functionality and examples have been restored since the start of
 the
 breaking modularization changes months ago?
 I stopped when I saw these kinds of build problems.


 On Tuesday, December 11, 2012 05:24:37 PM David Cole wrote:
  In VTK 'master' -- if you turn on the VTK_Group_Qt CMake option, either
  in the gui, or by -D on the command line, then all the Qt-related modules
  will be enabled.
 
  In VTK 5.10, there were some other configure time options (I'd have to go
  look them up or try it out) to control building the Qt-related bits...
 
  On Tue, Dec 11, 2012 at 5:20 PM, Stephen Kelly steve...@gmail.com
 wrote:
   John Drescher wrote:
I had some trouble building a x64 version of Qt 5.0 beta2 but then
after getting past that I found out that vtk-5.10.X would not work
with Qt5 so it pretty much ended what I wanted to test since pretty
much all of my current code uses vtk.
  
   I see. I just tried building VTK master in my Qt 4 environment, and I
   can't
   figure out how to build the Qt parts of it.
  
   I'm sure it's easy to port to Qt 5, but if I can't figure out how to
 build
   the Qt parts at all, then I can't do that.
  
   Thanks,
  
   Steve.
  
  
   --
  
   Powered by www.kitware.com
  
   Visit other Kitware open-source projects at
   http://www.kitware.com/opensource/opensource.html
  
   Please keep messages on-topic and check the CMake FAQ at:
   http://www.cmake.org/Wiki/CMake_FAQ
  
   Follow this link to subscribe/unsubscribe:
   http://www.cmake.org/mailman/listinfo/cmake
 --
 Clinton Stimpson
 Elemental Technologies, Inc
 Computational Simulation Software, LLC
 www.csimsoft.com

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[Cmake-commits] CMake branch, master, updated. v2.8.10.2-301-gb575ead

2012-12-11 Thread David Cole
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, master has been updated
   via  b575eadcdaf55fa4fe9a9d2dd8cb5e530365eae9 (commit)
   via  12d87c04253bd203a9b8a510b1772291527d441c (commit)
   via  e28ce2483dbdc620aa92e2ba0d86e8923dcdb296 (commit)
   via  354ecc1e1f28b9f2412fa015064353c6e20cfe92 (commit)
   via  d842d9062297435747117bd74b6e184cedd345cc (commit)
   via  711e2b3b5c674d4f754b5b214d511be6ce7e8f4d (commit)
  from  d73c4057edeca78fcefbcaf9fd3768e2c0e19e07 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b575eadcdaf55fa4fe9a9d2dd8cb5e530365eae9
commit b575eadcdaf55fa4fe9a9d2dd8cb5e530365eae9
Merge: d73c405 12d87c0
Author: David Cole david.c...@kitware.com
AuthorDate: Tue Dec 11 13:43:50 2012 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Tue Dec 11 13:43:50 2012 -0500

Merge topic 'add-timestamp-subcommands'

12d87c0 CMake: Fix dashboard build errors and warnings
e28ce24 CMake: Fix dashboard test failure
354ecc1 CMake: Fix dashboard warnings
d842d90 CMake: Stylistic changes and documentation tweaks
711e2b3 CMake: Add TIMESTAMP subcommand to string and file commands


---

Summary of changes:
 Source/cmBootstrapCommands.cxx |1 +
 Source/cmFileCommand.cxx   |   57 +
 Source/cmFileCommand.h |9 ++
 Source/cmStringCommand.cxx |   54 
 Source/cmStringCommand.h   |   30 +-
 Source/cmTimestamp.cxx |  134 
 Source/cmTimestamp.h   |   40 ++
 Tests/CMakeTests/File-TIMESTAMP-BadArg1.cmake  |1 +
 Tests/CMakeTests/File-TIMESTAMP-NoFile.cmake   |2 +
 Tests/CMakeTests/File-TIMESTAMP-NotBogus.cmake |   24 
 Tests/CMakeTests/File-TIMESTAMP-Works.cmake|2 +
 Tests/CMakeTests/FileTest.cmake.in |   12 ++
 .../String-TIMESTAMP-AllSpecifiers.cmake   |   11 ++
 Tests/CMakeTests/String-TIMESTAMP-BadArg1.cmake|1 +
 Tests/CMakeTests/String-TIMESTAMP-BadArg2.cmake|1 +
 Tests/CMakeTests/String-TIMESTAMP-BadArg3.cmake|1 +
 .../String-TIMESTAMP-CustomFormatLocal.cmake   |2 +
 .../String-TIMESTAMP-CustomFormatUTC.cmake |2 +
 .../String-TIMESTAMP-DefaultFormatLocal.cmake  |2 +
 .../String-TIMESTAMP-DefaultFormatUTC.cmake|2 +
 .../String-TIMESTAMP-IncompleteSpecifier.cmake |2 +
 .../String-TIMESTAMP-UnknownSpecifier.cmake|2 +
 Tests/CMakeTests/StringTest.cmake.in   |   30 +
 23 files changed, 421 insertions(+), 1 deletions(-)
 create mode 100644 Source/cmTimestamp.cxx
 create mode 100644 Source/cmTimestamp.h
 create mode 100644 Tests/CMakeTests/File-TIMESTAMP-BadArg1.cmake
 create mode 100644 Tests/CMakeTests/File-TIMESTAMP-NoFile.cmake
 create mode 100644 Tests/CMakeTests/File-TIMESTAMP-NotBogus.cmake
 create mode 100644 Tests/CMakeTests/File-TIMESTAMP-Works.cmake
 create mode 100644 Tests/CMakeTests/String-TIMESTAMP-AllSpecifiers.cmake
 create mode 100644 Tests/CMakeTests/String-TIMESTAMP-BadArg1.cmake
 create mode 100644 Tests/CMakeTests/String-TIMESTAMP-BadArg2.cmake
 create mode 100644 Tests/CMakeTests/String-TIMESTAMP-BadArg3.cmake
 create mode 100644 Tests/CMakeTests/String-TIMESTAMP-CustomFormatLocal.cmake
 create mode 100644 Tests/CMakeTests/String-TIMESTAMP-CustomFormatUTC.cmake
 create mode 100644 Tests/CMakeTests/String-TIMESTAMP-DefaultFormatLocal.cmake
 create mode 100644 Tests/CMakeTests/String-TIMESTAMP-DefaultFormatUTC.cmake
 create mode 100644 Tests/CMakeTests/String-TIMESTAMP-IncompleteSpecifier.cmake
 create mode 100644 Tests/CMakeTests/String-TIMESTAMP-UnknownSpecifier.cmake


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v2.8.10.2-307-g7b20f89

2012-12-11 Thread David Cole
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, master has been updated
   via  7b20f893c28c63a756dfb8a32bf55e964d9b5e8f (commit)
   via  acc224005e99076da3561ada8c06985487b0ce11 (commit)
  from  28c6d32688388565c4c6af7a60676d7eb41efcfa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7b20f893c28c63a756dfb8a32bf55e964d9b5e8f
commit 7b20f893c28c63a756dfb8a32bf55e964d9b5e8f
Merge: 28c6d32 acc2240
Author: David Cole david.c...@kitware.com
AuthorDate: Tue Dec 11 13:44:17 2012 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Tue Dec 11 13:44:17 2012 -0500

Merge topic 'TheRealAutomocIncludeDirFix'

acc2240 Automoc: get include dirs without stripping implicit include dirs 
off


---

Summary of changes:
 Source/cmLocalGenerator.cxx |   27 +++---
 Source/cmLocalGenerator.h   |3 +-
 Source/cmQtAutomoc.cxx  |   62 ++
 3 files changed, 21 insertions(+), 71 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v2.8.10.2-310-gbc9dcad

2012-12-11 Thread David Cole
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, master has been updated
   via  bc9dcadf19d44173bcc0b6cb99eac4cf5fdae4f0 (commit)
   via  f0d938549eead63fb86bec28c299a1bceacbdd6b (commit)
   via  2bc22bdaacfc0f0f91c229685dc5dbadd0267601 (commit)
  from  7b20f893c28c63a756dfb8a32bf55e964d9b5e8f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=bc9dcadf19d44173bcc0b6cb99eac4cf5fdae4f0
commit bc9dcadf19d44173bcc0b6cb99eac4cf5fdae4f0
Merge: 7b20f89 f0d9385
Author: David Cole david.c...@kitware.com
AuthorDate: Tue Dec 11 13:44:25 2012 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Tue Dec 11 13:44:25 2012 -0500

Merge topic 'xcode-framework-paths'

f0d9385 Makefile: Use modern link information for framework search paths
2bc22bd Xcode: Add frameworks search paths from link dependeny closure 
(#13397)


---

Summary of changes:
 Source/cmGlobalXCodeGenerator.cxx|   36 ++---
 Source/cmMakefileTargetGenerator.cxx |   26 ++--
 Source/cmTarget.cxx  |   21 ---
 Source/cmTarget.h|5 
 4 files changed, 26 insertions(+), 62 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v2.8.10.2-312-gd0369a9

2012-12-11 Thread David Cole
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, master has been updated
   via  d0369a980c1e9974edd2f6c74b870ac65163 (commit)
   via  61ace1df2616e472d056b302e4269cbf112fb020 (commit)
  from  bc9dcadf19d44173bcc0b6cb99eac4cf5fdae4f0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d0369a980c1e9974edd2f6c74b870ac65163
commit d0369a980c1e9974edd2f6c74b870ac65163
Merge: bc9dcad 61ace1d
Author: David Cole david.c...@kitware.com
AuthorDate: Tue Dec 11 13:44:33 2012 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Tue Dec 11 13:44:33 2012 -0500

Merge topic 'fix-13657-more-gcov47-output'

61ace1d CTest: Coverage handler: expect certain output lines from gcov 4.7 
(#13657)


---

Summary of changes:
 Source/CTest/cmCTestCoverageHandler.cxx |   15 +++
 1 files changed, 11 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v2.8.10.2-1272-ge26c1f7

2012-12-11 Thread David Cole
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  e26c1f7fd713e6637e1b487fad601638ef503fb1 (commit)
   via  d0369a980c1e9974edd2f6c74b870ac65163 (commit)
   via  bc9dcadf19d44173bcc0b6cb99eac4cf5fdae4f0 (commit)
   via  7b20f893c28c63a756dfb8a32bf55e964d9b5e8f (commit)
   via  28c6d32688388565c4c6af7a60676d7eb41efcfa (commit)
   via  3d0f1957d1e3178a6977aa840627cd592a2bd46e (commit)
   via  b575eadcdaf55fa4fe9a9d2dd8cb5e530365eae9 (commit)
   via  d73c4057edeca78fcefbcaf9fd3768e2c0e19e07 (commit)
   via  ab2b1f44f88dd82129bcfe7f96007c30e1e07d08 (commit)
  from  d66c8c16790ebf44d1ba339eebfa2ec25cfea287 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e26c1f7fd713e6637e1b487fad601638ef503fb1
commit e26c1f7fd713e6637e1b487fad601638ef503fb1
Merge: d66c8c1 d0369a9
Author: David Cole david.c...@kitware.com
AuthorDate: Tue Dec 11 13:45:31 2012 -0500
Commit: David Cole david.c...@kitware.com
CommitDate: Tue Dec 11 13:45:31 2012 -0500

Merge branch 'master' into next


---

Summary of changes:
 Source/CMakeVersion.cmake |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v2.8.10.2-1274-ga88b8c7

2012-12-11 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  a88b8c7c587923b76896dd68a1cd8a7479ddaa61 (commit)
   via  f24e5388ed3822ede71481f62457f893f80b (commit)
  from  e26c1f7fd713e6637e1b487fad601638ef503fb1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a88b8c7c587923b76896dd68a1cd8a7479ddaa61
commit a88b8c7c587923b76896dd68a1cd8a7479ddaa61
Merge: e26c1f7 f24
Author: Brad King brad.k...@kitware.com
AuthorDate: Tue Dec 11 14:02:16 2012 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Tue Dec 11 14:02:16 2012 -0500

Merge topic 'DocumentLIBRARY_PATH' into next

f24 Documentation: Clarify handling of implicit link directories


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f24e5388ed3822ede71481f62457f893f80b
commit f24e5388ed3822ede71481f62457f893f80b
Author: Brad King brad.k...@kitware.com
AuthorDate: Tue Dec 11 13:59:15 2012 -0500
Commit: Brad King brad.k...@kitware.com
CommitDate: Tue Dec 11 13:59:15 2012 -0500

Documentation: Clarify handling of implicit link directories

The wording introduced in the parent commit sounds like CMake reads the
LIBRARY_PATH environment variable, but it is the toolchain that reads
it.

diff --git a/Source/cmDocumentVariables.cxx b/Source/cmDocumentVariables.cxx
index 6b64dc5..32c543d 100644
--- a/Source/cmDocumentVariables.cxx
+++ b/Source/cmDocumentVariables.cxx
@@ -1621,12 +1621,15 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
  These paths are implicit linker search directories for the compiler's 
  language.  
  CMake automatically detects these directories for each language and 
- reports the results in this variable.  The content of the environment 
- variable LIBRARY_PATH during the initial CMake run influences the 
- contents of the CMAKE_LANG_IMPLICIT_LINK_DIRECTORIES variable.  When 
- linking with the full path against a library located in one of these 
- directories, only the short form of the link line, e.g. -lFoo, will be 
- used instead of the full path., false,
+ reports the results in this variable.
+ \n
+ When a library in one of these directories is given by full path to 
+ target_link_libraries() CMake will generate the -lname form on 
+ link lines to ensure the linker searches its implicit directories 
+ for the library.  
+ Note that some toolchains read implicit directories from an 
+ environment variable such as LIBRARY_PATH so keep its value 
+ consistent when operating in a given build tree.,false,
  Variables for Languages);
 
   cm-DefineProperty

---

Summary of changes:
 Source/cmDocumentVariables.cxx |   15 +--
 1 files changed, 9 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v2.8.10.2-1276-g716eed9

2012-12-11 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  716eed936f2429ac3218d20608a7e16bc63c2961 (commit)
   via  017d90c50099540b2bc71b63d646271aa0968d36 (commit)
  from  a88b8c7c587923b76896dd68a1cd8a7479ddaa61 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=716eed936f2429ac3218d20608a7e16bc63c2961
commit 716eed936f2429ac3218d20608a7e16bc63c2961
Merge: a88b8c7 017d90c
Author: Brad King brad.k...@kitware.com
AuthorDate: Tue Dec 11 14:02:50 2012 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Tue Dec 11 14:02:50 2012 -0500

Merge topic 'doc-implicit-link-dirs' into next

017d90c Documentation: Clarify handling of implicit link directories


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=017d90c50099540b2bc71b63d646271aa0968d36
commit 017d90c50099540b2bc71b63d646271aa0968d36
Author: Brad King brad.k...@kitware.com
AuthorDate: Tue Dec 11 14:00:23 2012 -0500
Commit: Brad King brad.k...@kitware.com
CommitDate: Tue Dec 11 14:00:23 2012 -0500

Documentation: Clarify handling of implicit link directories

Extend documentation for CMAKE_LANG_IMPLICIT_LINK_DIRECTORIES to
explain how it is used by CMake and how it can be influenced by
environment variables.

Inspired-by: Alex Neundorf neund...@kde.org

diff --git a/Source/cmDocumentVariables.cxx b/Source/cmDocumentVariables.cxx
index 55d70f8..32c543d 100644
--- a/Source/cmDocumentVariables.cxx
+++ b/Source/cmDocumentVariables.cxx
@@ -1621,7 +1621,15 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
  These paths are implicit linker search directories for the compiler's 
  language.  
  CMake automatically detects these directories for each language and 
- reports the results in this variable., false,
+ reports the results in this variable.
+ \n
+ When a library in one of these directories is given by full path to 
+ target_link_libraries() CMake will generate the -lname form on 
+ link lines to ensure the linker searches its implicit directories 
+ for the library.  
+ Note that some toolchains read implicit directories from an 
+ environment variable such as LIBRARY_PATH so keep its value 
+ consistent when operating in a given build tree.,false,
  Variables for Languages);
 
   cm-DefineProperty

---

Summary of changes:


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v2.8.10.2-1280-g0941fe9

2012-12-11 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  0941fe962dedbb5395d336e4c2221df6640f594e (commit)
   via  cc676c3a08019b17433931a9287d9cd8b0ccf2f2 (commit)
   via  2dd67c7ea095957d557d2934a67baacdf8a82d7b (commit)
   via  ba58d0c06fd8576844a5722930531a95d00c2003 (commit)
  from  716eed936f2429ac3218d20608a7e16bc63c2961 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0941fe962dedbb5395d336e4c2221df6640f594e
commit 0941fe962dedbb5395d336e4c2221df6640f594e
Merge: 716eed9 cc676c3
Author: Brad King brad.k...@kitware.com
AuthorDate: Tue Dec 11 15:44:35 2012 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Tue Dec 11 15:44:35 2012 -0500

Merge topic 'osx-implicit-link-dirs' into next

cc676c3 OS X: Detect implicit linker framework search paths
2dd67c7 OS X: Detect implicit link directories on modern toolchains
ba58d0c OS X: Link with all framework search paths, not just the last


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cc676c3a08019b17433931a9287d9cd8b0ccf2f2
commit cc676c3a08019b17433931a9287d9cd8b0ccf2f2
Author: Brad King brad.k...@kitware.com
AuthorDate: Wed Dec 5 13:46:04 2012 -0500
Commit: Brad King brad.k...@kitware.com
CommitDate: Tue Dec 11 15:15:52 2012 -0500

OS X: Detect implicit linker framework search paths

Previously we hard-coded a list of implicit framework directories but
did not account for CMAKE_OSX_SYSROOT or for changes to the list across
OS X versions.  Instead we should automatically detect the framework
directories for the active toolchain.

The parent commit added the -Wl,-v option to ask ld to print its
implicit directories.  It displays a block such as:

 Framework search paths:
/...

Parse this block to extract the list of framework directories.

Detection may fail on toolchains that do not list their framework
directories, such as older OS X linkers.  Always treat the paths

 sdk/Library/Frameworks
 sdk/System/Library/Frameworks
 sdk/Network/Library/Frameworks # Older OS X only
 /System/Library/Frameworks

as implicit.  Note that /System/Library/Frameworks should always be
considered implicit so that frameworks CMake finds there will not
override the SDK copies.

diff --git a/Modules/CMakeCCompiler.cmake.in b/Modules/CMakeCCompiler.cmake.in
index d74dcdc..c41adc9 100644
--- a/Modules/CMakeCCompiler.cmake.in
+++ b/Modules/CMakeCCompiler.cmake.in
@@ -50,6 +50,7 @@ endif()
 
 set(CMAKE_C_IMPLICIT_LINK_LIBRARIES @CMAKE_C_IMPLICIT_LINK_LIBRARIES@)
 set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES @CMAKE_C_IMPLICIT_LINK_DIRECTORIES@)
+set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES 
@CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@)
 
 @SET_CMAKE_CMCLDEPS_EXECUTABLE@
 @SET_CMAKE_CL_SHOWINCLUDE_PREFIX@
diff --git a/Modules/CMakeCXXCompiler.cmake.in 
b/Modules/CMakeCXXCompiler.cmake.in
index 8c5d84e..9287b81 100644
--- a/Modules/CMakeCXXCompiler.cmake.in
+++ b/Modules/CMakeCXXCompiler.cmake.in
@@ -51,6 +51,7 @@ endif()
 
 set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES @CMAKE_CXX_IMPLICIT_LINK_LIBRARIES@)
 set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES 
@CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES@)
+set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES 
@CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@)
 
 @SET_CMAKE_CMCLDEPS_EXECUTABLE@
 @SET_CMAKE_CL_SHOWINCLUDE_PREFIX@
diff --git a/Modules/CMakeDetermineCompilerABI.cmake 
b/Modules/CMakeDetermineCompilerABI.cmake
index cb94aa6..25d6bbe 100644
--- a/Modules/CMakeDetermineCompilerABI.cmake
+++ b/Modules/CMakeDetermineCompilerABI.cmake
@@ -72,8 +72,9 @@ function(CMAKE_DETERMINE_COMPILER_ABI lang src)
   # Parse implicit linker information for this language, if available.
   set(implicit_dirs )
   set(implicit_libs )
+  set(implicit_fwks )
   if(CMAKE_${lang}_VERBOSE_FLAG)
-CMAKE_PARSE_IMPLICIT_LINK_INFO(${OUTPUT} implicit_libs implicit_dirs 
log
+CMAKE_PARSE_IMPLICIT_LINK_INFO(${OUTPUT} implicit_libs implicit_dirs 
implicit_fwks log
   ${CMAKE_${lang}_IMPLICIT_OBJECT_REGEX})
 file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
   Parsed ${lang} implicit link information from above 
output:\n${log}\n\n)
@@ -111,6 +112,7 @@ function(CMAKE_DETERMINE_COMPILER_ABI lang src)
 
   set(CMAKE_${lang}_IMPLICIT_LINK_LIBRARIES ${implicit_libs} 
PARENT_SCOPE)
   set(CMAKE_${lang}_IMPLICIT_LINK_DIRECTORIES ${implicit_dirs} 
PARENT_SCOPE)
+  set(CMAKE_${lang}_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES ${implicit_fwks} 
PARENT_SCOPE)