Merge pull request #708 from hb9fxq/patch-1

Allow user defined CMAKE_INSTALL_PREFIX
This commit is contained in:
AlexandreRouma 2022-11-21 17:23:04 +01:00 committed by GitHub
commit fb10d0f917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,12 @@
cmake_minimum_required(VERSION 3.13)
project(sdrpp)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_INSTALL_PREFIX "/usr/local")
else()
set(CMAKE_INSTALL_PREFIX "/usr")
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_INSTALL_PREFIX "/usr/local")
else()
set(CMAKE_INSTALL_PREFIX "/usr")
endif()
endif()
# Configure toolchain for android