We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
On MSYS2, CMAKE_SYSTEM_NAME is always Windows so your check for MSYS and MINGW32 will not work. You can use these variables instead:
CMAKE_SYSTEM_NAME
Windows
MSYS
MINGW32
https://cmake.org/cmake/help/latest/variable/MINGW.html
https://cmake.org/cmake/help/latest/variable/MSVC.html
https://cmake.org/cmake/help/latest/variable/WIN32.html
For Linux you still have to check with CMAKE_SYSTEM_NAME. Note: since cmake 3.25 you could use the variable LINUX.
LINUX
The text was updated successfully, but these errors were encountered:
[cmake] fix issue #99 #100, check mingw on window
01ad990
yes, thanks for your help
Sorry, something went wrong.
No branches or pull requests
On MSYS2,
CMAKE_SYSTEM_NAME
is alwaysWindows
so your check forMSYS
andMINGW32
will not work. You can use these variables instead:https://cmake.org/cmake/help/latest/variable/MINGW.html
https://cmake.org/cmake/help/latest/variable/MSVC.html
https://cmake.org/cmake/help/latest/variable/WIN32.html
For Linux you still have to check with
CMAKE_SYSTEM_NAME
. Note: since cmake 3.25 you could use the variableLINUX
.The text was updated successfully, but these errors were encountered: