CMake: Warn if CMAKE_OSX_ARCHITECTURES is set on non-Apple platforms
Pick-to: 6.8 Change-Id: Icf683f17602ebb5d085f2ee25c1a02cacfb57609 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
3f3d8604e6
commit
834760e85e
@ -179,6 +179,11 @@ endfunction()
|
||||
|
||||
function(qt_auto_detect_apple)
|
||||
if(NOT APPLE)
|
||||
if(CMAKE_OSX_ARCHITECTURES AND NOT QT_NO_SHOW_NON_APPLE_CMAKE_OSX_ARCHITECTURES_WARNING)
|
||||
message(WARNING
|
||||
"CMAKE_OSX_ARCHITECTURES is set while targeting a non-Apple platform. This can "
|
||||
"lead to build failures. Consider reconfiguring with the variable unset.")
|
||||
endif()
|
||||
return()
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user