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) cmake_minimum_required(VERSION 3.13)
project(sdrpp) project(sdrpp)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "/usr/local") if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
else() set(CMAKE_INSTALL_PREFIX "/usr/local")
set(CMAKE_INSTALL_PREFIX "/usr") else()
set(CMAKE_INSTALL_PREFIX "/usr")
endif()
endif() endif()
# Configure toolchain for android # Configure toolchain for android