From 94fcb32310eecad96f77394f9e66d69593e9d1f6 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 28 Feb 2018 15:44:24 -0800 Subject: mpm: cmake: Make default install path /usr --- mpm/CMakeLists.txt | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'mpm/CMakeLists.txt') diff --git a/mpm/CMakeLists.txt b/mpm/CMakeLists.txt index 67130de4b..72d72bcfc 100644 --- a/mpm/CMakeLists.txt +++ b/mpm/CMakeLists.txt @@ -1,15 +1,24 @@ # -# Copyright 2017 Ettus Research, National Instruments Company +# Copyright 2017-2018 Ettus Research, a National Instruments Company # -# SPDX-License-Identifier: GPL-3.0 +# SPDX-License-Identifier: GPL-3.0-or-later # -cmake_minimum_required(VERSION 3.1) +CMAKE_MINIMUM_REQUIRED(VERSION 3.1) +PROJECT(MPM C CXX) # Also has Python, but CMake can take care of that later +# Set the default value for CMAKE_INSTALL_PREFIX to /usr +IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + SET(CMAKE_INSTALL_PREFIX "/usr" + CACHE + PATH + "Default installation path for MPM" + FORCE + ) +ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) ######################################################################## -# useful macros +# useful macros ######################################################################## - MACRO(USRP_PERIPHS_APPEND_SOURCES) SET(usrp_periphs_sources ${usrp_periphs_sources} PARENT_SCOPE) LIST(APPEND usrp_periphs_sources ${ARGV}) -- cgit v1.2.3