[CMake] CMake GUI suggestion - saving/restoring configurations

2015-09-27 Thread Edward Diener
It would really be nice if the CMake GUI program could save and restore 
configurations for whatever CMake setups the end-user uses. By this I 
mean the ability to save the paths to the source code and where the 
binaries should be built, as well as its corresponding cache 
information, under a user-defined name; and subsequently restore that 
information once the end-user chooses that user-defined name from a 
drop-down list of those that have been saved.


This would enable as many configurations as the end-user uses CMake for 
in an easily usable way using the CMake GUI program.


Another welcome improvement to the CMake GUI would be a drop-down list 
or combobox whenever an item has a set of values to choose from, with 
the CMAKE_BUILD_TYPE being an example of such a field.


The CMake GUI is a great program for using CMake and I hope my 
suggestions can make it better.


--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

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


[CMake] Seemingly-unfixable warning about CMP0058 after upgrade to CMake 3.3

2015-09-27 Thread Michael Catanzaro
Hi,

After upgrading to CMake 3.3, I'm seeing this warning when running
CMake on WebKitGTK+:

CMake Warning (dev):
  Policy CMP0058 is not set: Ninja requires custom command byproducts
to be
  explicit.  Run "cmake --help-policy CMP0058" for policy details.  Use
the
  cmake_policy command to set the policy and suppress this warning.

  This project specifies custom command DEPENDS on files in the build
tree
  that are not specified as the OUTPUT or BYPRODUCTS of any
  add_custom_command or add_custom_target:

   DerivedSources/webkit2gtk/WebKit2ResourcesGResourceBundle.xml

  For compatibility with versions of CMake that did not have the
BYPRODUCTS
  option, CMake is generating phony rules for such files to convince
'ninja'
  to build.

  Project authors should add the missing BYPRODUCTS or OUTPUT options
to the
  custom commands that produce these files.
This warning is for project developers.  Use -Wno-dev to suppress it.


But DerivedSources/webkit2gtk/WebKit2ResourcesGResourceBundle.xml is
not generated by add_custom_command or add_custom_target, it's
generated by the file command (in
WebKit/Source/WebKit2/PlatformGTK.cmake [1]):

file(WRITE
${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKit2ResourcesGResourceBundle.xml
"\n"
"\n"
"\n"
${WebKit2Resources}
"\n"
"\n"
)

So there's no way to specify it as a BYPRODUCT. This seems like a
defect in CMake, unless I am missing something...? It's building fine,
so not a big deal; just would be nice to get rid of the warning.

Michael

[1] https://github.com/WebKit/webkit/blob/master/Source/WebKit2/Platfor
mGTK.cmake
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

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


Re: [CMake] CDash [Safe Numerics] - Administration

2015-09-27 Thread David Cole via CMake
This message is sent when an unparseable xml file is submitted to CDash.
The email says the contents are as follows, with nothing (the empty string)
following... So, usually, this is some bot sending garbage to your CDash
url. There is nothing for you to do, but ignore these. If they are too
frequent, and coming from a suspicious IP address, you can ban submissions
from that IP address.

HTH,
David C.


On Sunday, September 27, 2015, Robert Ramey  wrote:

> I see that some people are posting results to my dashboard
> http://my.cdash.org/index.php?project=Safe+Numerics&filtercount=1&showfilters=1&field1=buildstarttime/date&compare1=83&value1=1%20year%20ago
> - but lately I’ve been getting the following message.  Unfortunately, the
> message doesn’t tell me what to change to make this work!  So I need some
> help.  Any suggestions appreciated.
>
>
> Begin forwarded message:
>
> From: CDash 
> Subject: CDash [Safe Numerics] - Administration
> Date: September 23, 2015 at 2:54:51 PM PDT
> To: ad...@cdash.org, ra...@rrsd.com
> Reply-To: nore...@cdash.org
>
> Object: Cannot create handler based on XML content
> An XML submission from 41.220.69.175 to the project Safe Numerics cannot
> be parsed. The content of the file is as follow:
>
> -CDash on my.cdash.org
>
>
> Robert Ramey
> Robert Ramey Software Development
> (805)569-3793
> ra...@rrsd.com
> www.rrsd.com
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

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

Re: [CMake] Is the situation with CMake + Eclipse ever going to get any better?

2015-09-27 Thread Alexander Neundorf
Hi,

On Sunday, September 27, 2015 13:29:15 Talin wrote:
> I've been using CMake and Eclipse for a bunch of different projects over
> the last several years. Although many aspects of both CMake and Eclipse
> have improved over the years, using them together still has a lot of
> problems.
> 
> From what I understand, you have three choices when setting up a project:
> 
> 1) Use in-source builds.
> 2) Use out-of-source builds with a single generated project.
> 3) Use out-of-source builds with both a build project and a source project.

the problem is that Eclipse does not support a directory layout where the 
project file is not the root of the source directory.

In my simplistic view it would be a simple
 tag in the .project file, and Eclipse would afterwards use that 
directory as root directory.

If something like that would be done in Eclipse, all those problems would be 
solved.

Alex

-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

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


[CMake] Is the situation with CMake + Eclipse ever going to get any better?

2015-09-27 Thread Talin
I've been using CMake and Eclipse for a bunch of different projects over
the last several years. Although many aspects of both CMake and Eclipse
have improved over the years, using them together still has a lot of
problems.

>From what I understand, you have three choices when setting up a project:

1) Use in-source builds.
2) Use out-of-source builds with a single generated project.
3) Use out-of-source builds with both a build project and a source project.

Option (1) has a lot of problems, especially if you have multiple build
configurations. I won't go into the details here, but most of the CMake
tutorials I've seen recommend against this.

Option (2) means that you can't use EGit or any other version control
system integrated with Eclipse.

Option (3) means that Eclipse thinks that you have two copies of every
source file - every time you search, or open a file by name, you get two
entries for the same file. Usually what you end up with is an editor window
with lots of duplicate tabs.

Now, some people have recommended that you set the "derived" flag on the
source files in the "build" project to cause Eclipse to ignore the files in
that project, but this creates even worse problems. For one thing, the
error links in the build console output point to the build project, not the
source project. So when you get a compiler error and click on the link, it
opens the wrong version of the file.

Thus you still end up with an editor window full of duplicate tabs - and if
you select the wrong one and type a character, you get the annoying "this
is a derived file, are you sure you want to edit it?" dialog. This happens
frequently enough to be a serious annoyance - I generally end up turning
'derived' off since it's less painful.

There's a fourth option, actually, which is use a different IDE :) However,
my projects tend to be multi-language projects - i.e. they have support
libraries for C++, Python, Java, and so on. They also tend to have a lot of
custom build targets (an example would be a script that invokes the Google
protobuf generator). Unfortunately, there aren't very many decent IDEs that
can handle more than one source language or custom build targets.

-- 
-- Talin
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

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