Re: [15knots/cmake4eclipse] Provide way to call pre-build commands (#91)

9 views
Skip to first unread message

Martin Weber

unread,
Nov 12, 2018, 2:43:01 PM11/12/18
to cmake4ecl...@googlegroups.com
Am Montag, 12. November 2018, 09:45:48 CET schrieb Michael Kutschke:
> It does not work, and I think it is because of the command line you
> generate:
>
> `cmd.exe /c "C:\\LegacyApp\\VisualStudio2015\\Common7\\Tools\\VsDevCmd.bat"
> && cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_RULE_MESSAGES:BOOL=OFF
> -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -G "\"NMake Makefiles\""
> "\"-DCMAKE_MODULE_PATH:PATH=C:\\Program Files\\eCAL\\cmake\""
> -DCMAKE_BUILD_TYPE:STRING=Release -DOFFLINE:STRING=ON
> -DCMAKE_C_COMPILER_FORCED:STRING=1 -DCMAKE_CXX_COMPILER_FORCED:STRING=1
> "C:\\Users\\uidj1662\\runtime-xcit-rcp.product\\test_yaaf\\projects\\build\
> \autogen" `
>
> I think this creates a CMD subprocess and then a cmake subprocess, when what
> you wanted to achieve was the cmake subprocess INSIDE the cmd subprocess.
> What I think it should look like (enclosing double quotation marks):

Yes. Looks like I mis-read the docs of cmd.exe. My current code passes
everything after '/c' as separate arguments.

> See https://stackoverflow.com/a/12892791/1319284

Man, is that weird.
Will come up with a version that passes everything after '/c' as a *single*
arg.

/Martin

--
Cd wrttn wtht vwls s mch trsr.


Reply all
Reply to author
Forward
0 new messages