From 8436aa794e22fcd9bbf2a97aee241ed338a44180 Mon Sep 17 00:00:00 2001 From: nimetu Date: Wed, 12 Jan 2022 23:44:16 +0200 Subject: [PATCH] Fix for azure pipeline linux agent OpenSSL compiling error --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb9e98285..9c7103cfe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,6 +155,14 @@ IF(WIN32) ENDIF() IF(HUNTER_ENABLED) + # This fix is for compiling OpenSSL in Azure Pipeline linux agent where ENV{SYSTEM} == "build" + IF(DEFINED ENV{SYSTEM} AND UNIX AND NOT APPLE) + STRING(TOUPPER "$ENV{SYSTEM}" _tmp) + IF (_tmp STREQUAL "BUILD") + UNSET(ENV{SYSTEM}) + ENDIF() + UNSET(_tmp) + ENDIF() ## TODO: hack for freetype hunter package SET(ON 1) ##