-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent CMake from identifying Android as MinGW.
If we don't explicitly set the target CMake will ID the compiler using the default target, causing MINGW to be defined when a Windows host is used. Test: added Bug: android/ndk#1581 Bug: https://gitlab.kitware.com/cmake/cmake/-/issues/22647 Change-Id: I3c4829eefd4fad6fbe85709c0d045b5e595b7b8e
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cmake_minimum_required(VERSION 3.6) | ||
project(CMakeNotMinGW ASM C CXX) | ||
|
||
if(DEFINED MINGW) | ||
message(FATAL_ERROR "MINGW should not be defined") | ||
endif() |