From d00d866e8c56d5a8acf764e34ce04dc54c790ac8 Mon Sep 17 00:00:00 2001 From: Marcus Asteborg Date: Wed, 22 Apr 2020 22:42:18 -0700 Subject: cmake - add include guards to cmake files Signed-off-by: Mark Harris --- cmake/OpusFunctions.cmake | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cmake/OpusFunctions.cmake') diff --git a/cmake/OpusFunctions.cmake b/cmake/OpusFunctions.cmake index a3ac1c09..f0da3822 100644 --- a/cmake/OpusFunctions.cmake +++ b/cmake/OpusFunctions.cmake @@ -1,8 +1,7 @@ -#[[Cmake helper function to parse source files from make files -this is to avoid breaking existing make and auto make support -but still have the option to use CMake with only lists at one place]] - -cmake_minimum_required(VERSION 3.1) +if(__opus_functions) + return() +endif() +set(__opus_functions INCLUDED) function(get_library_version OPUS_LIBRARY_VERSION OPUS_LIBRARY_VERSION_MAJOR) file(STRINGS configure.ac opus_lt_current_string -- cgit v1.2.3