Re: [cmake-developers] RFC: add version to project() call

2014-01-22 Thread Alexander Neundorf
On Tuesday 21 January 2014, Stephen Kelly wrote:
> Alexander Neundorf wrote:
> > On Sunday 19 January 2014, Stephen Kelly wrote:
> >> Alexander Neundorf wrote:
> >> > This is now in the AddVersionToProjectCommand branch on git stage.
> >> > 
> >> > Please have a close look at it.
> >> 
> >> The documentation is not formatted correctly as rst.
> > 
> > I looked at the generated html file, it seemed to look ok.
> > What's wrong with it ?
> 
> +# If no VERSION is given, the version number specified via
> +# project(... VERSION x.y.z ...) is used. If this hasn't been set, it
> errors
> +# out.
> 
> ... to:
> 
>  specified via :command:`project(VERSION)`
> 
> I didn't look for other problems or opportunities for better docs. I just
> noticed that, and it indicates you haven't looked into what can/should be
> done with rst yet. I suggest you look for those opportunities.

Ah, ok.

Is it actually recommended to use some formatting, like bold or italic or 
something else ?

Alex
-- 

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-developers] Order of linking libraries

2014-01-22 Thread Brad King
On 01/22/2014 06:52 AM, J Decker wrote:
> On Wed, Jan 22, 2014 at 2:31 AM, Marcin Maslany  
> wrote:
>> what's the order of linking libraries? Is it always deterministic? I know it
>> is possible to build dependency graph on libraries with cmake and find the
>> correct order with topological sorting (this might be the way you do it).

Yes, this is the way to do it.

>> I am just courius what is the reason of different order, even if I use the
>> same machine to build binary.

The order in which make chooses to build independent libraries
does not influence the order of their appearance on the link
line of consuming targets.

> It's in the same order as it is specified; if the same configuration
> options are used, it should be the same list always.

The implementation is here:

 
http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmComputeLinkDepends.cxx;hb=v2.8.12.1

Read the giant comment at the top of the file to see how the ordering
algorithm works.  When it refers to the "user specified" order it
means the order in target_link_libraries calls.

-Brad

-- 

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


[cmake-developers] [CMake 0014716]: CMake installer can't modify %PATH% if it's 'loo long'.

2014-01-22 Thread Mantis Bug Tracker

The following issue has been SUBMITTED. 
== 
http://www.cmake.org/Bug/view.php?id=14716 
== 
Reported By:iljau
Assigned To:
== 
Project:CMake
Issue ID:   14716
Category:   CMakeSetup
Reproducibility:sometimes
Severity:   minor
Priority:   normal
Status: new
== 
Date Submitted: 2014-01-22 08:30 EST
Last Modified:  2014-01-22 08:30 EST
== 
Summary:CMake installer can't modify %PATH% if it's 'loo
long'.
Description: 
CMake windows installer fails to add installation directory to %PATH% if
contents of %PATH% environment variable are above some hardcoded limit.

Steps to Reproduce: 
1. Fill your user %PATH% environment variable with something long (in my case
466 characters).
2. Run installer.
3. Select "Add CMake to the system PATH for current user" in the installer.
4. Click "Next >"
5. After installing cmake, following window pops up:
   "Warning! PATH too long installer unable to modify PATH!"
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2014-01-22 08:30 iljau  New Issue
==

-- 

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-developers] Order of linking libraries

2014-01-22 Thread J Decker
It's in the same order as it is specified; if the same configuration
options are used, it should be the same list always.
IF things are somehow installed differently maybe; but the installed
libraries should still be located in the same order.

It is the same order for all generators.
The order of objects is always the order they are specified.

On Wed, Jan 22, 2014 at 2:31 AM, Marcin Maslany  wrote:
> Hello,
>
> what's the order of linking libraries? Is it always deterministic? I know it
> is possible to build dependency graph on libraries with cmake and find the
> correct order with topological sorting (this might be the way you do it).
>
> However, when I check the output from two builds (one after another) using
> cmake I can see that order is not always the same. I mean when I compare
> phrases "Linking C/CXX static library ..". Even if I run make with only one
> job.
>
> I totally agree that it still produces the correct binary, but I'd like to
> know if it's possible to ensure that the linking order of libraries is (no
> matter what machine I am running it on) deterministic? Of course, other than
> adding fake dependencies.
>
> I am just courius what is the reason of different order, even if I use the
> same machine to build binary.
>
> BR, Marcin Maslany
>
> --
>
> 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
-- 

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


[cmake-developers] Order of linking libraries

2014-01-22 Thread Marcin Maslany
Hello,

what's the order of linking libraries? Is it always deterministic? I know
it is possible to build dependency graph on libraries with cmake and find
the correct order with topological sorting (this might be the way you do
it).

However, when I check the output from two builds (one after another) using
cmake I can see that order is not always the same. I mean when I compare
phrases "Linking C/CXX static library ..". Even if I run make with only one
job.

I totally agree that it still produces the correct binary, but I'd like to
know if it's possible to ensure that the linking order of libraries is (no
matter what machine I am running it on) deterministic? Of course, other
than adding fake dependencies.

I am just courius what is the reason of different order, even if I use the
same machine to build binary.

BR, Marcin Maslany
-- 

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