POSIX arch: Give a nicer error message if built in unsuported platform
Instead of failing badly later, let's give a clear error message if the user tries to build in an unsupported platform. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
630555d9f6
commit
2096006cd8
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (NOT CMAKE_HOST_UNIX OR CMAKE_HOST_APPLE)
|
||||
message(FATAL_ERROR "The POSIX architecture only works on Linux. If on Windows or macOS "
|
||||
"consider using a virtual machine to run a Linux guest.")
|
||||
endif()
|
||||
|
||||
# This native_simulator library is used to pass options to the
|
||||
# native_simulator runner build. Currently the following are used:
|
||||
# INTERFACE_COMPILE_OPTIONS:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue