-
Notifications
You must be signed in to change notification settings - Fork 48
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_LEGACY_CYGWIN_WIN32 Is Unset #1322
Comments
Thanks for the report. |
@insertinterestingnamehere I don't believe it's an issue on most MSYS2 installs, only ones using a Cygwin-like environment (but those may not set |
Okay, it looks like the warning is coming from the msys2 package's patch for CMake. See https://github.com/Alexpux/MSYS2-packages/blob/master/cmake/cmake-3.6.0-msys.patch#L791. I'm not a huge fan of legacy anything, but this looks like a good solution here. |
DyND uses the WIN32 flag to remove the
-fPIC -Wno-ignored-attributes
flags during compilation, however, it fails to set theCMAKE_LEGACY_CYGWIN_WIN32
flag at the top of CMakeLists.txt. This flag sets WIN32 to be true on MSYS2/Cygwin compilers, which do not support either flag (and would typically ignore them, however,-Werror
is enabled).The solution is to add the following line to the toplevel
CMakeLists.txt
at the top of the file:set(CMAKE_LEGACY_CYGWIN_WIN32 1)
Once again, I can submit a PR with the last 3 changes, if desired.
The text was updated successfully, but these errors were encountered: