Обработка переменной DEB_HOST_MULTIARCH

This commit is contained in:
Andrei Astafev 2021-11-28 13:24:26 +03:00
parent e11dd38dd0
commit 5bd3f308bb

View File

@ -13,7 +13,9 @@ include(CMLibDisableInSourceBuild)
include(CMakeParseArguments) include(CMakeParseArguments)
include(GNUInstallDirs) include(GNUInstallDirs)
if(DEFINED ENV{DEB_HOST_MULTIARCH}) if(DEFINED ENV{DEB_HOST_MULTIARCH})
string(APPEND CMAKE_INSTALL_LIBDIR "/$ENV{DEB_HOST_MULTIARCH}") if(NOT CMAKE_INSTALL_LIBDIR MATCHES $ENV{DEB_HOST_MULTIARCH})
string(APPEND CMAKE_INSTALL_LIBDIR "/$ENV{DEB_HOST_MULTIARCH}")
endif()
endif() endif()
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${CMAKE_CXX_SOURCE_FILE_EXTENSIONS};tpp;tcc) set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${CMAKE_CXX_SOURCE_FILE_EXTENSIONS};tpp;tcc)