From 2f3f45f2a075396259bae58a1da8e66d09bb8e0f Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Tue, 6 Jul 2021 04:54:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=BC=D0=B5=D0=BD=D0=B0=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibCommonLibraryTarget.cmake | 8 ++++---- CMLibHighPrecisionMath.cmake | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CMLibCommonLibraryTarget.cmake b/CMLibCommonLibraryTarget.cmake index e032738..4748e8a 100644 --- a/CMLibCommonLibraryTarget.cmake +++ b/CMLibCommonLibraryTarget.cmake @@ -4,15 +4,15 @@ function(add_common_library target) set(oneValueArgs OUTPUT_NAME) set(multiValueArgs SOURCES) - cmake_parse_arguments(_LOCAL "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) + cmake_parse_arguments(_PREFIX "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) - if(_LOCAL_OUTPUT_NAME) - set(output_name ${_LOCAL_OUTPUT_NAME}) + if(_PREFIX_OUTPUT_NAME) + set(output_name ${_PREFIX_OUTPUT_NAME}) else() set(output_name ${target}) endif() - add_library(${target} OBJECT ${_LOCAL_SOURCES}) + add_library(${target} OBJECT ${_PREFIX_SOURCES}) target_include_directories( ${target} PUBLIC $ $ $) diff --git a/CMLibHighPrecisionMath.cmake b/CMLibHighPrecisionMath.cmake index 3204f60..4fc64ea 100644 --- a/CMLibHighPrecisionMath.cmake +++ b/CMLibHighPrecisionMath.cmake @@ -3,13 +3,13 @@ function(enable_high_precision_math) set(oneValueArgs) set(multiValueArgs) - cmake_parse_arguments(_PKG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) + cmake_parse_arguments(_PREFIX "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) - if(MPFR AND QUAD) + if(_PREFIX_MPFR AND _PREFIX_QUAD) message(FATAL_ERROR "Mutually exclusive options QUAD and MPFR") endif() - if(MPFR) + if(_PREFIX_MPFR) find_package(MPFR) if(MPFR_FOUND) find_package(MPFRCppThirdparty) @@ -17,7 +17,7 @@ function(enable_high_precision_math) return() endif() - if(QUAD) + if(_PREFIX_QUAD) find_package(Quadmath) if(QUADMATH_FOUND) add_definitions(-DHAVE_QUADMATH=1)