Skip to content

CMake on MinGW: Add VERBATIM to add_custom_command().#277

Closed
dgobbi wants to merge 1 commit intomadler:masterfrom
dgobbi:fix-for-mingw
Closed

CMake on MinGW: Add VERBATIM to add_custom_command().#277
dgobbi wants to merge 1 commit intomadler:masterfrom
dgobbi:fix-for-mingw

Conversation

@dgobbi
Copy link
Copy Markdown

@dgobbi dgobbi commented Jul 12, 2017

This fixes a zlib build error on MinGW for the CMake build. If spaces occur within the paths, the build on MinGW will fail unless VERBATIM is used in the CMakeLists.txt.

The origin of this patch is here: https://gitlab.kitware.com/third-party/zlib/commit/cb98c54

If spaces occur within the paths, this custom command will fail without
the verbatim.  It wasn't caught until now because this custom command is
only used with mingw.
@madler
Copy link
Copy Markdown
Owner

madler commented Feb 2, 2025

See #1027 .

@madler madler closed this Feb 2, 2025
@mathstuf
Copy link
Copy Markdown

mathstuf commented Feb 3, 2025

Thanks; zlib1.rc is no longer generated, so this diff is moot.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants