[CMake] Escaping end of line anker in regex

2019-01-10 Thread Torsten Robitzki
Hi, I’ve stumbled over following issue: if (NOT ^ MATCHES ^\^ ) message(FATAL_ERROR "Anker not found!") endif() if (NOT $ signature.asc Description: Message signed with OpenPGP -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[cmake-developers] [CMake 0015865]: Can't use /PDBALTPATH:%_PDB% in MSVC IDE generator due to CMake escaping percent signs

2015-11-26 Thread Mantis Bug Tracker
:%_PDB% in MSVC IDE generator due to CMake escaping percent signs Description: When using the MSVC generator and using a linker flag that is added to the AdditionalOptions of the linker in the vcxproj, CMake will escape the linker flag. For example it will double up percent signs in a flag

[CMake] Escaping/quoting special option keywords

2015-01-22 Thread Rémi Rampin
Hi everyone, I'm trying to figure out a way to escape the special keywords that are used to introduce named options in function arguments (see CMakeParseArguments [1]), for example to pass the string RESULT_VARIABLE as argument to a command executed via execute_process(): set(what

[CMake] Escaping equal sign in custom command

2013-04-11 Thread Robert Dailey
I'm invoking cmake -P to execute a CMake script in a custom command, and I also pass in variables via -D. Here is the command that gets generated by CMake for the custom command: C:\Program Files (x86)\CMake 2.8\bin\cmake.exe -D

Re: [CMake] Escaping equal sign in custom command

2013-04-11 Thread Robert Dailey
Actually I did a bit more testing on this: C:\Work\rdailey-hp\dpd-cmake\cmake\scripts\cmakecmake -D DOXYGEN_TAGFILES=C:/bar/somevalue=C:/foo/another -P configur e_file.cmake DOXYGEN_TAGFILES: C:\Work\rdailey-hp\dpd-cmake\cmake\scripts\cmakecmake -D DOXYGEN_TAGFILES=C/bar/somevalue=C:/foo/another

Re: [CMake] Escaping equal sign in custom command

2013-04-11 Thread David Cole
Try: cmake -D DOXYGEN_TAGFILES:STRING=C:/bar/somevalue=C:/foo/another -P configure_file.cmake Because of the “:TYPE” parsing, “:” after the = sign can sometimes be misinterpreted by the regex code used to parse these out... HTH, David From: Robert Dailey Sent: ‎Thursday‎, ‎April‎

Re: [CMake] Escaping equal sign in custom command

2013-04-11 Thread Robert Dailey
Thanks that was it! On Thu, Apr 11, 2013 at 9:02 AM, David Cole dlrd...@aol.com wrote: Try: cmake -D DOXYGEN_TAGFILES:STRING=C:/bar/somevalue=C:/foo/another -P configure_file.cmake Because of the “:TYPE” parsing, “:” after the = sign can sometimes be misinterpreted by the regex code

[CMake] Escaping semicolons in COMPILE_FLAGS on msvc

2010-10-18 Thread David Genest
Hi, I have tried and tried, but haven't succeeded to include a semicolon as a COMPILE_FLAGS property for a file. I turn to you for wisdom: I need to get this as a result in the pre-processor definitions: MYPATH=\d:\\;.\\Lib\ But when I use the following escape sequence in

Re: [CMake] Escaping semicolons in COMPILE_FLAGS on msvc

2010-10-18 Thread Michael Hertling
On 10/18/2010 06:50 PM, David Genest wrote: Hi, I have tried and tried, but haven't succeeded to include a semicolon as a COMPILE_FLAGS property for a file. I turn to you for wisdom: I need to get this as a result in the pre-processor definitions: MYPATH=\d:\\;.\\Lib\ But when I

Re: [CMake] escaping!

2007-12-20 Thread Andrew Roark
On Dec 10, 2007 7:12 PM, Andrew Roark wrote: For any tricky file operations (like all files ending with XML greater than 2Kb using DOS newlines etc) I would personally write a python script (e.g. ROOTDIR/util/xmlfinder.py) to do that work and make the command simply invoke the

Re: [CMake] escaping!

2007-12-20 Thread Brandon Van Every
On Dec 20, 2007 4:25 PM, Andrew Roark [EMAIL PROTECTED] wrote: By all means, if it can be done in CMake, then do it in CMake. But the CMake philosophy itself is in dispute with your argument. I don't need anything but CMake to do regexes. They aren't ideal regexes, but you can still get

Re: [CMake] escaping!

2007-12-12 Thread Javier Gonzalez
Hi, Well, these don't answer much. The first message (from Andrew) mentions an option I have considered: writing everything on a script and calling the script. However, I thought it would be possible with cmake. The wiki just says: You may need \\ instead of \ due to CMake argument processing. \

Re: [CMake] escaping!

2007-12-12 Thread Brandon Van Every
On Dec 12, 2007 10:09 AM, Javier Gonzalez [EMAIL PROTECTED] wrote: Hi, Well, these don't answer much. The first message (from Andrew) mentions an option I have considered: writing everything on a script and calling the script. However, I thought it would be possible with cmake. It probably

Re: [CMake] escaping!

2007-12-11 Thread Sylvain Benner
I'm quite jaded about keeping CMakeLists.txt simple. As far as I'm concerned, it should be as simple as the level of complication of your build. If I want encapsulation, I write a macro. Otherwise I'll just write straight CMake script, because I'd rather read CMake script than the docs of 5

Re: [CMake] escaping!

2007-12-11 Thread Sylvain Benner
I'm quite jaded about keeping CMakeLists.txt simple. As far as I'm concerned, it should be as simple as the level of complication of your build. If I want encapsulation, I write a macro. Otherwise I'll just write straight CMake script, because I'd rather read CMake script than the docs of 5

Re: [CMake] escaping!

2007-12-10 Thread Andrew Roark
Is it possible to have a command like this? ADD_CUSTOM_COMMAND(OUTPUT ${my_file} ... COMMAND find . -name *xml /dev/null ... VERBATIM ) Not sure if you got a reply to this, nor if the following is any help, BUT... For any tricky file operations (like all files ending with XML

Re: [CMake] escaping!

2007-12-10 Thread Hendrik Sattler
Am Dienstag 11 Dezember 2007 schrieb Andrew Roark: Is it possible to have a command like this? ADD_CUSTOM_COMMAND(OUTPUT ${my_file} ... COMMAND find . -name *xml /dev/null ... VERBATIM ) Not sure if you got a reply to this, nor if the following is any help, BUT...

Re: [CMake] escaping!

2007-12-10 Thread Andrew Roark
- Original Message From: Hendrik Sattler [EMAIL PROTECTED] To: cmake@cmake.org Sent: Monday, December 10, 2007 7:29:21 PM Subject: Re: [CMake] escaping! Am Dienstag 11 Dezember 2007 schrieb Andrew Roark: Is it possible to have a command like this? ADD_CUSTOM_COMMAND(OUTPUT

Re: [CMake] escaping!

2007-12-10 Thread Brandon Van Every
On Dec 10, 2007 7:12 PM, Andrew Roark [EMAIL PROTECTED] wrote: For any tricky file operations (like all files ending with XML greater than 2Kb using DOS newlines etc) I would personally write a python script (e.g. ROOTDIR/util/xmlfinder.py) to do that work and make the command simply invoke

[CMake] escaping!

2007-12-05 Thread Javier Gonzalez
Hi all, Is it possible to have a command like this? ADD_CUSTOM_COMMAND(OUTPUT ${my_file} ... COMMAND find . -name *xml /dev/null ... VERBATIM ) I managed to get it working without the verbatim option but now I added other things and it became a nightmare. I'm trying the verbatim

Re: [CMake] Escaping $

2006-09-22 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Hi, I am trying to create FooConfig.cmake by having FooConfig.cmake.in and running CONFIGURE_FILE(FooConfig.cmake.in FooConfig.cmake) on it. In FooConfig.cmake.in, I have something like: SET(MY_LOCAL

[CMake] Escaping $

2006-09-21 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Hi, I am trying to create FooConfig.cmake by having FooConfig.cmake.in and running CONFIGURE_FILE(FooConfig.cmake.in FooConfig.cmake) on it. In FooConfig.cmake.in, I have something like: SET(MY_LOCAL ${CMAKE_INSTALL_PREFIX}/include/foo) IF (WIN32) SET(MY_LOCAL

[CMake] escaping spaces in paths with cmake -E commands?

2006-05-06 Thread Zachary Pincus
Hi folks, I'm using CMake 2.2-3, and have recently run into some problems with a stanza of CMake code that looks like this: SET(src ${IN_DIR}/foo.bar) SET(tgt ${OUT_DIR}/foo.bar) EXEC_PROGRAM(${CMAKE_COMMAND} ARGS -E copy_if_different ${src} ${tgt}) The problem comes when src or tgt have