Packages

Clutch Nerves System BR - Buildroot based build platform for Nerves Systems

Current section

Files

Jump to
clutch_nerves_system_br nerves-env.cmake
Raw

nerves-env.cmake

# SPDX-FileCopyrightText: 2022 Cocoa Xu
#
# SPDX-License-Identifier: BSD-3-Clause
#
set(CMAKE_SYSTEM "Linux")
set(CMAKE_SYSTEM_NAME "Linux")
# set nerves sysroot
set(CMAKE_FIND_ROOT_PATH "$ENV{NERVES_SDK_SYSROOT}")
# set system processor
set(CMAKE_SYSTEM_PROCESSOR "$ENV{TARGET_ARCH}")
# adjust the default behavior of the find commands:
# search headers and libraries in the target environment
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
# never search programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)