From be2e4f899a4a14a3527f2c1331d6d904047b3525 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Sun, 19 Jan 2020 16:56:51 +0100 Subject: set CMake policy CMP0075 if it exists Otherwise newer versions of CMake are throwing a warning. --- CMakeLists.txt | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b175e5..f34904d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,21 +1,19 @@ -# Copyright 2012 OSMOCOM Project +# Copyright 2012-2020 Osmocom Project # # This file is part of rtl-sdr # -# GNU Radio is free software; you can redistribute it and/or modify +# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. # -# GNU Radio is distributed in the hope that it will be useful, +# This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with GNU Radio; see the file COPYING. If not, write to -# the Free Software Foundation, Inc., 51 Franklin Street, -# Boston, MA 02110-1301, USA. +# along with this program. If not, see . ######################################################################## @@ -24,6 +22,11 @@ cmake_minimum_required(VERSION 2.6) project(rtlsdr C) +# CMP0075 Include file check macros honor CMAKE_REQUIRED_LIBRARIES +if(POLICY CMP0075) + cmake_policy(SET CMP0075 NEW) +endif() + #select the release build type by default to get optimization flags if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") -- cgit v1.2.3