2021-02-18 03:46:53 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# This program and the accompanying materials are made available under the
|
|
|
|
# terms of the Apache License, Version 2.0 which is available at
|
|
|
|
# https://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
#
|
|
|
|
# See the NOTICE file distributed with this work for additional
|
|
|
|
# information regarding copyright ownership.
|
|
|
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
################################################################################
|
2019-06-06 14:21:15 +02:00
|
|
|
# the name of the target operating system
|
|
|
|
set(CMAKE_SYSTEM_NAME Linux)
|
|
|
|
|
|
|
|
# which compilers to use for C and C++
|
|
|
|
set(CMAKE_C_COMPILER powerpc-linux-gnu-gcc)
|
|
|
|
set(CMAKE_CXX_COMPILER powerpc-linux-gnu-g++)
|
|
|
|
|
|
|
|
# here is the target environment located
|
|
|
|
set(CMAKE_FIND_ROOT_PATH /usr/powerpc-linux-gnu )
|
|
|
|
|
|
|
|
# adjust the default behaviour of the FIND_XXX() commands:
|
|
|
|
# search headers and libraries in the target environment, search
|
|
|
|
# programs in the host environment
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|