Gyorgy Szing | 30fa987 | 2017-12-05 01:08:47 +0000 | [diff] [blame^] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2017, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | #Force extension for object files to be '.o'. |
| 9 | set(CMAKE_C_OUTPUT_EXTENSION ".o" CACHE STRING "" FORCE) |
| 10 | |
| 11 | # Set a variable to indicate whether the value of CMAKE_INSTALL_PREFIX |
| 12 | # was initialized by the block below. This is useful for user |
| 13 | # projects to change the default prefix while still allowing the |
| 14 | # command line to override it. |
| 15 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) |
| 16 | set(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT 1) |
| 17 | endif() |