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

Comments

Projects
None yet
3 participants
@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

@bagder

This comment has been minimized.

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

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Member

MarcelRaad commented Oct 13, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment