Re: [CMake] Antwort: Re: Re: Antwort: Antwort: Re:Antwort: Re: Toolchain with non-gcc argument format

2017-11-22 Thread Anders Lindgren
Hi! One solution is to write a wrapper script in your favourite scripting language (Ruby, Python etc) that pretend that it's a compiler. It could recognise the -I option and start the RX compiler with the --include option. It would not hurt to make it recognise other standard flags like "-o" and "

[CMake] add_custom_command taints main dependency file?

2015-06-03 Thread Anders Lindgren
o targets and after each target is created I create a custom command and add the output files to the target. (The path of the output file contains the ARCHIVE_OUTPUT_DIRECTORY target property.) In my case, what happens is that second target includes rules for building the output file of the first t

Re: [CMake] set(a b); set(b c); if(a STREQUAL b OR a STREQUAL c) ...

2014-09-04 Thread Anders Lindgren
on't fall into this trap is to use distinct variable names. I.e. use variable names that don't naturally occur in other situations in you CMakeLists:s. In your example "b" is used both as the name of a variable and as a value. -- Anders Lindgren On Thu, Sep 4, 2014 at 7:01

Re: [CMake] Feature suggestion: cmake -E do_nothing -- useful to simulate configuration-specific commands

2014-06-19 Thread Anders Lindgren
Hi David! I have been playing around with "cmake -E echo". The problem is that when using generator expressions, you can't apply them to the entire command line (they must be applied to one argument at a time). For example, if we would use the expression generator on the command we could generate

[CMake] Feature suggestion: cmake -E do_nothing -- useful to simulate configuration-specific commands

2014-06-19 Thread Anders Lindgren
t this doesn't rely on any system-specific external command. Of course, this would not be needed if add_custom_command could be configuration-specific... In addition, it would be nice if other fields, like COMMENT, could support generator expressions. Sincerely, Anders Lindgren -- Powered

Re: [CMake] Wanted: Interface link options

2014-06-16 Thread Anders Lindgren
s on the form "-NNN" (in addition to "/NNN"). Sincerely, Anders Lindgren On Fri, Jun 13, 2014 at 1:53 PM, Petr Kmoch wrote: > Hi Andres. > > I cannot comment on the property request itself, but you should be able to > work around its absence by using `-` instead

[CMake] Wanted: Interface link options

2014-06-13 Thread Anders Lindgren
Visual Studio options.) Sincerely, Anders Lindgren -- 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:

Re: [CMake] NSIS template variable substitution.

2014-06-05 Thread Anders Lindgren
-- my_list: alpha;beta;gamma -- res: alpha beta gamma --- Sincerely, Anders Lindgren On Wed, Jun 4, 2014 at 9:17 PM, Rick McGuire wrote: > I'm working on a custom NSIS template where I wish to accumulate a set of > NSIS commands in a list and then ins

[CMake] Emacs syntax highlighting package 'cmake-font-lock' updated to include 2.8.12 CMake features

2014-06-04 Thread Anders Lindgren
variables, keywords etc. This version of the package contains function signatures for all built-in CMake function up to and including CMake 2.8.12. For an example of this package, please see the screenshot on the github page. Sincerely, Anders Lindgren -- Powered by www.kitware.com P

[CMake] New package for advance syntax coloring of CMake scripts in Emacs

2013-04-05 Thread Anders Lindgren
rocessor definitions like `-DNAME', `NAME' is colored as a *constant*. About me: I'm an Emacs veteran with more than 20 years of experience (even though I'm relatively new to CMake). I'm the author of `cwarn-mode', `follow-mode', and I wrote the original java fo