From f0760fcd1176d42cc53dd1e57520144ef25d3ec8 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 9 Oct 2019 09:48:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A5=D0=B0=D0=BA=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=90=D1=81=D1=82=D1=80=D0=B0=201.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibCompilerFlags.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMLibCompilerFlags.cmake b/CMLibCompilerFlags.cmake index 40af045..d4dae01 100644 --- a/CMLibCompilerFlags.cmake +++ b/CMLibCompilerFlags.cmake @@ -1,5 +1,14 @@ # based on https://github.com/bluescarni/yacma +find_program(LSB_RELEASE NAMES lsb_release) +if (LSB_RELEASE) + execute_process(COMMAND ${LSB_RELEASE} -d -s OUTPUT_VARIABLE LSB_DESC) + if ("${LSB_DESC}" STREQUAL "Astra Linux SE 1.5 (Smolensk)") + set(_CMAKE_TOOLCHAIN_PREFIX "x86_64-linux-gnu-") + set(_CMAKE_TOOLCHAIN_SUFFIX "-4.7") + endif() +endif() + include(CheckCXXCompilerFlag) macro(CHECK_ENABLE_CXX_FLAG flag)