Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: unusable tool_hugehelp.c with MinGW #3125

Closed
MarcelRaad opened this issue Oct 11, 2018 · 5 comments
Closed

CMake: unusable tool_hugehelp.c with MinGW #3125

MarcelRaad opened this issue Oct 11, 2018 · 5 comments

Comments

@MarcelRaad
Copy link
Member

MarcelRaad commented Oct 11, 2018

I did this

cmake -G "MSYS Makefiles" [...] && cmake --build .

I got a compile error because my tool_hugehelp.c contains:

C:/MinGW/msys/1.0/* built-in manual is disabled, blank function */

I expected the following

Successful compilation and no POSIX path conversion, like with the autotools build.

CMake version:

COMMAND ${CMAKE_COMMAND} -E echo "/* built-in manual is disabled, blank function */" > tool_hugehelp.c

Automake version:
echo "/* built-in manual is disabled, blank function */" > $(HUGE)

curl/libcurl version

git master 12dde22

operating system

Windows 10

@MarcelRaad MarcelRaad added build cmake Windows Windows-specific labels Oct 11, 2018
@bagder
Copy link
Member

bagder commented Oct 11, 2018

It seems to require perl and nroff:

https://github.com/curl/curl/blob/master/CMakeLists.txt#L211-L213

I don't think hugehelp generation actually needs nroff though...

@MarcelRaad
Copy link
Member Author

MarcelRaad commented Oct 11, 2018

Ah, you're right! When using the autotools build, I do have a full tool_hugehelp.c without this comment, still without nroff.

@bagder
Copy link
Member

bagder commented Oct 12, 2018

No, I was wrong! src/Makefile.am uses nroff to build the huge help output. It runs the equivalent of:

 nroff -man curl.1 | perl mkhelp.pl docs/MANUAL >> huge.c

... after curl.1 has been generated of course.

@MarcelRaad
Copy link
Member Author

MarcelRaad commented Oct 13, 2018

Right, I do have groff (and its nroff script) in $PATH, only the CMake build won't use it...

@bagder bagder closed this as completed in 13f09f6 Jan 10, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants