[CMake] FYI: Where do users of CMake with Eclipse work?

2019-07-06 Thread Martin Weber
Hi all,

found some interesting download stats for Eclipse plugins that integrate 
CMake.



Just click the globe icon to the right to see downloads by country.

Martin

-- 
There are only two hard problems in Computer Science: cache invalidation, 
naming things, and off-by-one errors.




-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Ubuntu CMake Repository Now Available

2019-04-14 Thread Martin Weber
Am Freitag, 5. April 2019, 22:15:37 CEST schrieb Sergei Nikulov:
> It would be great to see officialy supported rpm repository for
> CentOS/Fedora as well!

The open build service [1] supports packaging for many distros, including 
Debian.
The project for cmake is here [2]. You could ask the maintainers to add 
building cmake for CentOS/Fedora, too. 

Martin

[1] https://openbuildservice.org/
[2] https://build.opensuse.org/package/show/devel:tools:building/cmake

-- 
Cd wrttn wtht vwls s mch trsr.




-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Eclipse generator question

2019-04-05 Thread Martin Weber
Am Freitag, 5. April 2019, 00:07:08 CEST schrieb Benjamin Shadwick:
> Ah, it seems my CMake is too old to produce compile_commands.json. Maybe
> this is part of why other IDEs are working better at home on Ubuntu MATE
> LTS.
> 
> Unfortunately Red Hat ships CMake 2.8.12.2 even in recent RHEL releases,
> which is now approaching 5 years old (yikes!). Apparently they ship CMake
> 3.13.4 as a 'cmake3' package and I didn't catch it - will see if I can
> upgrade at least some of my machines.

They don't! Maybe you find a more recent RPM at https://build.opensuse.org/
 and ask the package maintainer there to also build it for RHEL.
I took the same approach on our company-internal OBS.


-- 
Cd wrttn wtht vwls s mch trsr.




-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Eclipse generator question

2019-04-03 Thread Martin Weber
Am Mittwoch, 3. April 2019, 22:55:45 CEST schrieb Benjamin Shadwick:
> FYI,
> 
> I opened a bug on CMake's tracker about updating the CMake generator since
> its outputs are kind of garbage for modern CDT releases:
> https://gitlab.kitware.com/cmake/cmake/issues/19107
> 
> Unfortunately the only feedback I got was that there is a push to remove
> *all* generators in favor of forcing IDEs to use cmake-file-api. I opened a

+1 from me for removing IDE project generators.

[...]
> Maybe being tied to the filesystem view is an inherent limitation of
> Eclipse (and/or CDT), or maybe it was at one time and neither CMake nor

To implement the 'index only files referenced through the build script' view, 
*any* IDE would have to *interpret* the build scripts. 
Just choose an IDE that has a build script interpreter to solve your use case.

> cmake4eclipse are taking advantage of what modern Eclipse versions can do.

Sounds promising. What is it that _modern Eclipse versions can do_?

-- 
Cd wrttn wtht vwls s mch trsr.




-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Eclipse generator question

2019-04-03 Thread Martin Weber
Am Mittwoch, 3. April 2019, 22:26:59 CEST schrieb Benjamin Shadwick:
> I tried cmake4eclipse, and it's a mixed bag. It requires a lot of tweaking

Really? Just set _CMake Builder (portable)_ as the current builder and build.

> of the Eclipse project after you create it, and I'm pretty sure it suffers
> from the same problem of leaving you with an Eclipse project whose source
> tree reflects what is in the filesystem rather than what is defined in the
> CMake project.

What does that mean: _an Eclipse project whose source tree reflects what is in 
the filesystem rather than what is defined in the CMake project._ ??

 
> It's really annoying that I spent all this time building a CMake project
> for a complex codebase, only to have the IDE present and index the entire
> source tree on the filesystem instead of the subset that is actually being
> built by the CMake configuration.

If the IDE indexing all source files takes too long, I would say it is a 
problem with the IDE; but not a problem of cmake's IDE project generator (as 
the topic states).

> I should probably enhance my project-tweaking python script to add filters
> to the generated Eclipse project to hide anything that isn't in the CMake
> project.

That's the only way to go in your case. How should the CDT4 project generator 
know about all your source files that do not take part in a build?



-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Eclipse generator question

2019-04-03 Thread Martin Weber
Am Mittwoch, 3. April 2019, 18:44:04 CEST schrieb Benjamin Shadwick:
> Update - I think I found a tolerable workaround:
> 
> If I invoke cmake with -DCMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES=OFF and
> then inject a link to my include directory into the .project file, things
> work a lot better:

You (and other having problems with eclipse projects generated by cmake) might 
want to read these posts of the CDT project lead concerning cmake's CDT4 
generator [1] [2].

Martin

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=530090#c3
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=530090#c5


-- 
Cd wrttn wtht vwls s mch trsr.




-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Eclipse generator question

2019-04-03 Thread Martin Weber
Am Mittwoch, 3. April 2019, 18:44:04 CEST schrieb Benjamin Shadwick:
> Update - I think I found a tolerable workaround:
> 
> If I invoke cmake with -DCMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES=OFF and
> then inject a link to my include directory into the .project file, things
> work a lot better:
> - I get only one copy of each source file in the Open Resource dialog.
> - I get source and header files in the Open Resource dialog.
> - I can toggle between source and header.
> - I can build from Eclipse.
> - I get version control support, even in my include tree.
> - Indexing is fast.
> 
> It seems that Eclipse improved version control support quite a bit since
> the CMake Eclipse generator was last touched. Unfortunately this seems to
> also mean that a lot of the linked resources that CMake generates by
> default now just add noise (hence my better results from turning them off).

Newer versions of CDT (9.1+) seem to have trouble to properly read the 
.cproject file generated by cmake [1] [2]. 

Forget about running cmake manually and install _cmake4eclipse_ from the 
eclipse marketplace. It runs cmake automatically [3] and comes with support 
for the eclipse indexer. Some people even use it for CUDA in the nvidia 
insight IDE. (Disclaimer: I am the maintainer)
Just try it with one of the example projects [4].

Martin

[1] 
[2] 

Re: [CMake] Additional traffic on cmake.org concerning cmake documentation

2019-01-16 Thread Martin Weber
Am Mittwoch, 16. Januar 2019, 18:24:09 CET schrieb Robert Maynard:
> It would not be a problem as it relates to server load for you to
> redirect to `https://cmake.org/cmake/help/latest/`, but as frodak17 a

There would be no server load of users of the plugin. I plan to change the 
HTML-links in the table-of-content sections to point to cmake.org instead of 
pointing to the the bundled HTML-files.

> better avenue would to investigate packaging the generated html files
> ( located in doc/cmake/html/ ).

Packaging the generated html files seems to be the way to go.
But I do not want the html checked in at my github repo (Currently github 
language-details says: HTML 77.6%).
Are the HTML files for cmake docs available in a zip file, so I can let the 
CmakeEd doc build download them? I found them in  but am unsure whether that is the 
proper file to use.

THX,
Martin

-- 
Cd wrttn wtht vwls s mch trsr.




-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Additional traffic on cmake.org concerning cmake documentation

2019-01-16 Thread Martin Weber
Am Dienstag, 15. Januar 2019, 23:20:38 CET schrieb frodak17:
> On Tue, Jan 15, 2019 at 3:54 PM Martin Weber 
> 
> wrote:
> > Hi,
> > 
> > So my question is: Are there any objections regarding the additional IP
> > traffic on cmake.org imposed if CmakeEd-users would browse the online
> > docs
> > instead of a local copy? Or would it be preferable to have a download-on-
> > demand feature for the docs?
> > 
> > CMakeEd currently has about 18k installs and gets roughly 700 more each
> > month.
> > The attachment show the items to be replaced by online links to cmake.org.
> > 
> > Regards,
> > 
> > Martin
> 
> Does the plugin use the cmake installed on the local machine?  Whenever

No, it is just an editor.


-- 
Cd wrttn wtht vwls s mch trsr.




-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] Additional traffic on cmake.org concerning cmake documentation

2019-01-15 Thread Martin Weber
Hi,

this is a question to the people at cmake.org.

The CmakeEd plugin for eclipse [1],[2] currently comes with a copy of the 
cmake documentation. Unfortunately, it refers to a fairly outdated version of 
cmake (2.8.6) and the scripts to convert the docs to Eclipse help format do 
not longer work and I have no time to maintain them. 
As the author of CMakeEd, I would like to replace the bundled doc-files by 
online links to documentation on cmake.org.

So my question is: Are there any objections regarding the additional IP 
traffic on cmake.org imposed if CmakeEd-users would browse the online docs 
instead of a local copy? Or would it be preferable to have a download-on-
demand feature for the docs?

CMakeEd currently has about 18k installs and gets roughly 700 more each month.
The attachment show the items to be replaced by online links to cmake.org.

Regards,
Martin


[1] https://github.com/15knots/cmakeed
[2] https://marketplace.eclipse.org/content/cmake-editor

-- 
Cd wrttn wtht vwls s mch trsr.

-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] Weird @<< in compile_commands.json

2018-11-13 Thread Martin Weber
Hi,

I see cmake producing a compile_commands.json file that contains a weird 
expression like '@<< /TP -DECAL_LAYER_FASTRTPS <<'.
This expression causes an issue in my cmake4eclipse project [1].

The expression looks like a commandfile-specifiation, but the file `<<` does 
not exist.

So my question:
Is the '@<< ... <<' just an invention of cmake or is it somehow `official`?

Martin

[1] https://github.com/15knots/cmake4eclipse/issues/93#issuecomment-437783515

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Need info on how cmake messages output is formatted

2018-09-09 Thread Martin Weber
Am Freitag, 7. September 2018, 20:48:27 CEST schrieb Mateusz Loskot:
> On Fri, 7 Sep 2018 at 20:08, Martin Weber  wrote:
> > Any pointers to cmake sources are also welcome.

Thank you!

> 
> AFAIC, the message is printed via
> cmMessenger::DisplayMessage
> called by
> cmMessenger::IssueMessage
> which is typically called by
> cmake::IssueMessage
> 
> So, searching the CMake sources for
> invocations of ->IssueMessage
> and uses of cmake::MessageType and its members eg. cmake::FATAL_ERROR
> may help to collect a picture on how messages are composed.

Uuh, 383 references found


-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Eclipse CDT4 - Unix Makefiles / Ninja Generator

2018-07-09 Thread Martin Weber
Am Sonntag, 8. Juli 2018, 23:17:27 CEST schrieb Alexander Neundorf:
> On 2018 M07 7, Sat 19:09:18 CEST Martin Weber wrote:
> > Hi all,
> > 
> > FYI, according to this [1], those generators do no longer work with the
> > new
> > core build introduced in CDT 9.5.
> > 
> > Martin
> > 
> > [1] http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg33066.html
> 
> do you know whether the new build system of CDT is documented somewhere ?
> I found this, but this is far from enough.
> http://www.eclipse.org/org/langsymp/CDT%20Managed%20Build%20System.pdf

All I found is here <http://dev.eclipse.org/mhonarc/lists/cdt-dev/
msg32845.html>

I also browsed through the new code, but the javadocs are close to non-
existent.

If the cmake devs plan to remove the CDT4 generator, I think that would be OK. 
In 2013, I started an eclipse plugin that automatically runs cmake from 
Eclipse. It's also in the marketplace, so cmake users have an escape.

Martin

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] Eclipse CDT4 - Unix Makefiles / Ninja Generator

2018-07-07 Thread Martin Weber
Hi all,

FYI, according to this [1], those generators do no longer work with the new 
core build introduced in CDT 9.5.

Martin

[1] http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg33066.html

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] CMAKE_EXPORT_COMPILE_COMMANDS, compile_commands.json content

2018-05-18 Thread Martin Weber
Hi all,

in the generated compile_commands.json, what are the quoting rules in the 
command fields?
Apart from the fact that a quotation mark in json inside a value has to be 
escaped as *\"*, do the arguments in the command-field follow the shell-
escape rules or do they reflect the arguments passed to exec(1).

Seeing a line in my compile_commands.json starting with

"command": "/usr/bin/c++ -Dprojectname_ROOT_DIR=\\\"/home/username/workspace/
projectname\\\" 

is confusing. What exactly is the value of macro projectname_ROOT_DIR here? A 
string literal?

OTOH, the same line has

-DvtkFiltersFlowPaths_AUTOINIT=\"1(vtkFiltersParallelFlowPaths)\"

which I do recognize as a macro value of string literal type.

Background: My tool tries to get the macro definition from the  
compile_commands.json file [1]

TIA,
Martin

[1] https://github.com/15knots/cmake4eclipse/issues/74

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Question about eclipse

2018-02-10 Thread Martin Weber
On Donnerstag, 8. Februar 2018 02:42:13 CET jaeho jo wrote:
> Hi! I have a Question aboue eclipse.
> 
> I have a one C project in eclipse.
> 
> I have built this project only using eclipse so far.
> 
> I want to build thid C project using cmake
> 
>   Should I write the CMakeLists.txt file myself?? or Is there a way to set
> CMake build environment automatically?

You will have to do so. There is no generator for CMakeLists.txt in CDT.

> I can find many way to import existing cmake project to eclipse.
> 
> But, I can't find how to set cmake build configuration about existing
> eclipse C project easily

I wrote a plugin that works with normal C/C++ projects and invokes cmake for 
you. You will find it in the Eclipse Marketplace (cmake4eclipse).

As a start, you may check out the sample projects in 

Martin

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Platform dSPACE

2017-06-23 Thread Martin Weber
Am Freitag, 23. Juni 2017, 19:47:32 CEST schrieb Robin Verschueren:
> Dear CMake,
> 
> We are trying to build our application for the dSPACE embedded system
> (www.dspace.com), more specifically their MicroAutobox-II. This makes
> use of a specific compiler called mccppc (Microtec C/C++ PowerPC compiler).
> 
> I was following the instructions on this wiki page
> , when I got the following
> warning,
> when trying to use a custom 'Toolchain' file:

Sounds like you will have to create a custom toolchain file.
Maybe this will help:


Martin
-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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 there a way to produce the documentation of cmake in xml format?

2017-06-08 Thread Martin Weber
Am Mittwoch, 7. Juni 2017, 22:35:51 CEST schrieb Nils Gladitz:
> On 07.06.2017 21:23, Martin Weber wrote:
> > Hi all,
> > 
> > is there a way to extract the documentation from cmake-sources and convert
> > that to XML?
...

> CMake uses the Sphinx documentation system:
> 
>  http://www.sphinx-doc.org
> 
> 
> One of the supported builders is "xml" (Docutils-native XML).
> 
> 
> Assuming you've installed sphinx and enabled e.g. SPHINX_HTML
> (-DSPHINX_HTML=ON) you could try a verbose build of the "documentation"
> target to see how a sphinx-build invocation looks like.
> 
> To change the builder modify the argument after the -b option (e.g.
> replace "html" with "xml").

Thanks, Nils, that help a lot!

Martin


-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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 there a way to produce the documentation of cmake in xml format?

2017-06-07 Thread Martin Weber
Hi all,

is there a way to extract the documentation from cmake-sources and convert 
that to XML? 
I am trying to work on CmakeEd [1]. This Eclipse plugin has support for 
editing cmakelists files (syntax highlighting, code completion), but only for 
cmake 2.8 which I want to update.
If I had docs in XML I could use XSLT to produce my files instead of typing 
all the stuff...

Any ideas?
Martin

[1] https://sourceforge.net/p/cmakeed/bugs/7/
[2] https://marketplace.eclipse.org/content/cmake-editor#group-details
[3] https://wiki.eclipse.org/CDT/User/NewIn91#CMake_Projects

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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] default generator officially supported?

2016-09-16 Thread Martin Weber
Hi,

in [1] some pointed out that cmake seems to have a notion of _default 
genrator_, that is: If you invoke cmake without the -D option, it chose a 
generator depending on the platform and create the build scripts.

Is this nice feature officially supported by cmake? I could not find it 
documented anywhere.

TIA,
Martin

[1] https://issues.jenkins-ci.org/browse/JENKINS-38227

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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] CMAKE - troubles finding executables/paths - Windows 7 / MinGW

2016-06-14 Thread Martin Weber
Yes, I know this [1] thread is old, but it hurts me, too.

This is what I found:
The mingw32 installer (mingw32-get, IIRC) no longer places a key in the 
windows registry.

So if anyone installed mingw32 in a directory other than c:/MinGW/,
cmake will not find it.
After adding the bin directory of the mingw install location to %PATH%, cmake 
will detect mingw32-make, but it will complain saying 'the compiler is not 
able to build a single program'. 
This happens because cc1.exe (which is *not* in the bin directory) cannot find 
the DLLs located in the bin directory. You have to manually copy the DLLs to 
the directory containing cc1.exe.

Maybe someone finds this useful.

Martin

[1] https://cmake.org/pipermail/cmake/2011-May/044637.html

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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] How to check if Eclipse CDT4 generated project is set up correctly?

2016-04-22 Thread Martin Weber
Am Freitag, 22. April 2016, 13:28:33 schrieb Nils Rathmann:
> Hi Alex,
> thanks for the details. I managed to add the header files as intended
> and do have the targets you described, but the virtual directories
> "CMake Rules", "Object Files" and "Ressources" of each Target
> subdirectory are still empty. What is the intention of these virtual
> directories?

Hi Nils,

the Eclipse Marketplace has some plugins that help you to work with cmake in 
Eclipse.
Just search for 'cmake'...

Martin

-- 

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] Unable to download older releases: Directory index no longer supported

2015-11-04 Thread Martin Weber
Am Mittwoch, 4. November 2015, 09:55:10 schrieb Brad King:
> On 11/03/2015 03:54 PM, Martin Weber wrote:
> > The download site [1] seems to have been revamped. Since then, it does no
> > longer allow to download older releases.
> 
> The directory index was disabled but old direct links should still have
> worked.

Sure. But with the next crawler run, it did not find any download links and 
each jenkins installation forgot the old download links when they did its 
daily update.
BTW, the crawler runs daily, not every 10 days, as earlier reported. 

[...]
> 
> > It would be nice to keep the download feature working.
> 
> We've restored the indexing until another solution can be chosen.

Thank you for restoring index listing.

Solutions could be
- Selective index listing by user-agent header.
- Hosting releases on bintray (it has a query API)

Thank you!
Martin

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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] Unable to download older releases: Directory index no longer supported

2015-11-03 Thread Martin Weber
Hi cmake developers,

I hope some of the cmake developers will chime in here...

The download site [1] seems to have been revamped. Since then, it does no 
longer allow to download older releases.

If the devs decided to disable directory listings due to excessive download 
traffic caused by Jenkins instances, please let me know.

I am the maintainer of a Jenkins-plugin [2], that invokes cmake to generate 
the build scripts. I recently added a feature to that plugin, which downloads 
a cmake binary (.tar.gz) from cmake.org and installs it for use of jenkins 
only. This feature seems to be very useful for people that run jenkins build 
nodes under windows or Linuxes that ship with older versions of cmake (e.g. 
RHEL-7 still ships with cmake 2.8.6).
Since the revamp, the download feature fails [3].

Download traffic on cmake.org is caused by the following:

- Jenkins backend crawler [4], runs every ~10 days on the download sites and 
detects newer releases of cmake and announces new versions to plugin users.
- Jenkins slaves (aka worker nodes) that download from cmake.org. Downloads 
happen once per slave and per cmake version, but not per build [5].

It would be nice to keep the download feature working.

TIA,
Martin

[1] http://www.cmake.org/files/
[2] https://wiki.jenkins-ci.org/display/JENKINS/cmakebuilder+Plugin
[3] 
https://issues.jenkins-ci.org/browse/JENKINS-31371?focusedCommentId=240827=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-240827
[4] https://github.com/jenkinsci/backend-crawler/blob/master/cmake.groovy
[5] 
https://github.com/jenkinsci/cmakebuilder-plugin/commit/1ed695b9c059ab5d70833f1938ecbe68d68a031b

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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-28 Thread Martin Weber
Am Sonntag, 27. September 2015, 13:29:15 schrieb 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.

If you are building C/C++ sources, set up a CDT project.
ADVERTISING:
Then let  generate the 
makefiles. (I am the author of it).

It is not perfect due to the quirks in CDT, but it avoids that extra manual 
invocation of 'cmake -G whatever'.

Martin

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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] dates on web site

2015-08-24 Thread Martin Weber
Am Sonntag, 23. August 2015, 17:04:47 schrieb Dave Yost:
...
 I suggest you switch to ISO 8601 https://en.wikipedia.org/wiki/ISO_8601
 for dates, which will cause no difficulties for non-American users.

+1
I always get confused with middle-endian dates.

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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] Automatic management of Eclipse projects

2015-06-25 Thread Martin Weber
Am Montag, 22. Juni 2015, 18:02:01 schrieb Cedric Doucet:
 Hello,
 
 I am testing the possibility of generating Eclipse projects with CMake.

If you want to generate the from teh Eclipse workbench and are familiar with 
CDT,
try this https://marketplace.eclipse.org/content/cmake4eclipse

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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] Eclipse .cproject Preprocessor Macro Definitions

2015-06-05 Thread Martin Weber
Am Donnerstag, 4. Juni 2015, 15:53:11 schrieb Ette, Anthony:
 Ok I've got this installed but can't get it to work.  I've selected the

Please discuss this on the appropriate mailing list.

https://groups.google.com/forum/#!forum/cmake4eclipse-users


 Martin

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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] Eclipse .cproject Preprocessor Macro Definitions

2015-05-30 Thread Martin Weber
Am Donnerstag, 28. Mai 2015, 19:17:08 schrieb Ette, Anthony:
 To Whom It May Concern:
 
 I'm using Cmake 3.2.2, specifically the Eclipse CDT4 - NMake Makefiles
 generator.  I am able to successfully run cmake and build from within
 Eclipse but there seem to be things missing from the .cproject file.  For
 example, I've got a source routine with #ifdef _WIN32 and this chunk of
 code is greyed out (i.e. not perceived active) in the Eclipse editor and
 source outline views (see picture below).  I find this surprising since the
 build succeeds (it's ultimately able to find the necessary windows headers)
 and /DWIN32 is defined in CMAKE_CXX_FLAGS.

This may be more related to CDt than to cmake, since cmake just generates the 
makefiles and the Eclipse project files.

Your code is displayed as greyed out, since CDT does not know about the _WIN32 
macro (but the build does know). You may manually add it in the project 
settings, or enable the GCC build output parser plus the gcc builtin specs 
detector to tell CDT about the macro.
The build output parser will find macros and include paths in the gcc command 
lines and add them automatically. Of course, this will not work, if the cmake 
generated build script passes the compiler options in a file:(

Advertising: Give the cmake4eclips plugin a try (which I am the author of)

Martin

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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] (no subject)

2015-05-12 Thread Martin Weber
Am Dienstag, 12. Mai 2015, 20:32:48 schrieb Uma Devi:
 dear cmake user
 i am not able to updaate the cmake in one of my linux system. how can i
 update the cmake in centos

Maybe because CentOS is still at cmake v 2.6?

Martin

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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] C/C++ projects: Can cmake generate a '-include file' option for the compiler?

2015-03-20 Thread Martin Weber
Hi,

is there a way in the cmakelists syntax to generate a build script 
(make/ninja/...) that will invoke the C/C++ compiler with an '-include file' 
or '-include macros' option?
From the GNU cpp man page:

-include file
   Process file as if #include file appeared as the first line of 
the primary source file. ...
-imacros file
   Exactly like -include, except that ...

I do not really believe these options make any sense when using cmake (they 
seem to be GNU cc specific), but I am the author of an eclipse plugin that 
integrates cmake with eclipse CDT and have to parse the build output in order 
to feed the CDT indexer with macro definitions and include paths.

I am asking, because I want to avoid writing parsers that detect the above 
compiler options.

Are there any script generators that produce compiler invocation with the 
above otions? Or tool chains?

TIA,
Martin
 
-- 
Quidquid latine dictum sit, altum viditur.
-- 

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 there a cmake variable/property for temp dir?

2015-03-13 Thread Martin Weber
Am Freitag, 13. März 2015, 22:30:14 schrieb Nils Gladitz:
 On 13.03.2015 22:23, Martin Weber wrote:
...
 There isn't as far as I know ... why do you need it though?

To be honest: I don´t know. Just asking on behalf of 
https://github.com/toeb/cmakepp/issues/97

 
 Why not go with somewhere in the build directory?
 It is already full of temporary build artifacts.

Good idea! Thanks!

Martin

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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 there a cmake variable/property for temp dir?

2015-03-13 Thread Martin Weber
... coding the
if(win32)
  set(cmakepp_tmp_dir $ENV{TMP})
else it)linux)
  set(cmakepp_tmp_dir $ENV{TMPDIR})
becomes tedious. if you have to deal with cross platform builds.

TIA,
Martin

-- 
Quidquid latine dictum sit, altum viditur.
-- 

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] [ANNOUNCE] Please test staged cmake for eclipse CDT 1.3.0

2014-12-02 Thread Martin Weber
Hi all,

I about to release a new version of the plugin for Eclipse CDT to integrate 
CMake. 
It should make setting up CDT to use cmake much easier.

A short description can be found at the project home 
pagehttps://code.google.com/p/cmake4eclipsecdt/[1]


The update site URL of the staged version is
jar:https://fb89b4022f831df26c696c50fb105ac1171a7b3a.googledrive.com/host/0B-QU1Qnto3huZUZ0QUdxM01pR0U/cmake4eclipsecdt-1.3.0-SNAPSHOT.zip!/


Any feedback is welcome, especially for OS X.



Thanks,


 Martin




[1] https://code.google.com/p/cmake4eclipsecdt/
-- 

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] Resource filters in generated eclipse projects

2014-04-19 Thread Martin Weber
Am Freitag, 11. April 2014, 10:30:18 schrieb Josh Bialkowski:
 Hello!
 
 Has anyone figured out a good way to preserve resource filters across a
 cmake-rerun when using an eclipse generated project?

I guess the makefile tries to regenerate the eclipse project filess, too, thus 
deleteing the filters.

Try to run cmake -G CDt - Unix MAkefiles to generate the eclispe files.

Then run cmake -G Unix MAkefiles again.

HTH,
Martin

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Potential bug to set a working directory for test

2013-04-04 Thread Martin Weber

Am 27.03.2013 17:57, schrieb Klaim - Joël Lamotte:

Hi,

I'm using CMake 2.10.2 the VS2012(VC11) generator.
I summed-up my problem in the last paragraph.

I'm trying to do this:

add_test(
   NAME ${TEST_PROJECT_NAME}
 WORKING_DIRECTORY ${TEST_WORKING_DIR}
 COMMAND ${TEST_PROJECT_NAME}
)

[...]

Unfortunately this cannot work as with the current generator the
${TEST_PROJECT_NAME} is converted to a windows-specific path which is the
relative path from the CMakeLists.txt file.
So the generated commands are something like

 cd E:/projects/myprojects/final/Debug


If your binary dir resides on a different drive than E:, the generated 
command will not work. Remember, cd on windows does not change the drive.

The generated command should be
cd /D E:/projects...

I think it's a bug.

Martin
--

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] How to install a single object file?

2012-06-04 Thread Martin Weber

Greetings,

I want to compile a single object file from C source and want to finally 
install it.

I know how to compile the source by adding it to a dummy ADD_EXECUTABLE.
But how do I get the object file's name for use in an INSTALL?

TIA,
 Martin

--
E-Mails sollten Text sein, Text und nur Text.
Wenn Gott gewollt hätte, dass E-Mails in HTML geschrieben würden,
endeten Gebete traditionell mit /amen.
--

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] How to determine origin of variable

2011-08-26 Thread Martin Weber

Am 25.08.2011 17:54, schrieb David Cole:
[...]

See this recent bug report for some advice in the notes:
http://public.kitware.com/Bug/view.php?id=12340

And this old email on the list that contains basically the same advice:
http://www.cmake.org/pipermail/cmake/2007-August/015814.html

You can also search for CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT --
you can use that value near the top of your top-level CMakeLists.txt
file to force-initialize CMAKE_INSTALL_PREFIX to your own default
value if you want to.


Thank, that helped. I was not aware of the difference between cache vars 
and vars set in CMakelists.txt.


Martin

--
E-Mails sollten Text sein, Text und nur Text.
Wenn Gott gewollt hätte, dass E-Mails in HTML geschrieben würden,
endeten Gebete traditionell mit /amen.
___
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] How to determine origin of variable

2011-08-25 Thread Martin Weber

Hi all,

is there a way in CMake to detect, whether a variable has been set on 
the command-line (with the -D option) and not in a CMakelists.txt?


For example, GNU-make has the origin function do do something similar.

Thanks,
 Martin

--
☂ E-Mails sollten Text sein, Text und nur Text.
Wenn Gott gewollt hätte, dass E-Mails in HTML geschrieben würden,
endeten Gebete traditionell mit /amen.
___
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] How to determine origin of variable

2011-08-25 Thread Martin Weber

Am 25.08.2011 17:39, schrieb David Cole:

On Thu, Aug 25, 2011 at 7:34 AM, Martin Weberm.we...@razorcat.com  wrote:

Hi all,

is there a way in CMake to detect, whether a variable has been set on the
command-line (with the -D option) and not in a CMakelists.txt?

For example, GNU-make has the origin function do do something similar.

Thanks,
  Martin

--
☂ E-Mails sollten Text sein, Text und nur Text.
Wenn Gott gewollt hätte, dass E-Mails in HTML geschrieben würden,
endeten Gebete traditionell mit/amen.
___
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


No, there's no way to tell.

Why do you ask?


My CMakelists.txt changes the value of CMAKE_INSTALL_PREFIX by replacing 
the trailing directory. But it should do this only if the user did not 
specify a value on the commandline.



--
E-Mails sollten Text sein, Text und nur Text.
Wenn Gott gewollt hätte, dass E-Mails in HTML geschrieben würden,
endeten Gebete traditionell mit /amen.
___
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] WORKING_DIRECTORY from add_custom_target() not setting current directory on windows

2011-08-24 Thread Martin Weber

Hi all,

the WORKING_DIRECTORY from add_custom_target() does change the current 
directory properly on windows, if the current directory and the 
directory specified in WORKING_DIRECTORY reside on different drives.

I experienced that with the following command:

add_custom_target(doc
   echo *** CD-ing: cd  ${DOXYGEN_EXECUTABLE} 
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile

WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT Generating API documentation VERBATIM
)

which is executed as

[  0%] Generating API documentation
cd D:\develop\ITE\client_automation\src\itecrc-lib  echo *** CD-ing: 
 cd  C:/Program Files (x86)/doxygen/bin/doxygen.exe 
C:/Users/m.weber/Documents/.eclipsews/ITE/client_automation/src/itecrc-lib/Doxyfile

*** CD-ing:
C:\Users\m.weber\Documents\.eclipsews\ITE\client_automation

I expect
D:\develop\ITE\client_automation\src\itecrc-lib
here.
There problem is caused by the cd-command on windows: To change the 
current directory _and_ the drive, the /D option must be specified.

So 'WORKING_DIRECTORY Z://foo' should translate to
'cd /D  Z://foo' on windows to make it work.

Regards,
 Martin

--
E-Mails sollten Text sein, Text und nur Text.
Wenn Gott gewollt hätte, dass E-Mails in HTML geschrieben würden,
endeten Gebete traditionell mit /amen.
___
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