From 7f5a92106a023a96328bb5719bcec901c1374fc3 Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Thu, 18 Nov 2021 03:10:04 +0100
Subject: [PATCH] Try to fix lmdbxx download

---
 .gitlab-ci.yml | 2 +-
 CMakeLists.txt | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 031e140c6..590304dbc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,7 +4,7 @@ variables:
   # prevent configure tzdata hanging apt install commands
   DEBIAN_FRONTEND: noninteractive
 
-build-gcc7:
+build-gcc9:
   stage: build
   image: ubuntu:20.04
   tags: [docker]
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6340fc3ca..6424f38fd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -487,10 +487,10 @@ if(USE_BUNDLED_LMDBXX)
 		lmdbxx
 		URL "https://raw.githubusercontent.com/hoytech/lmdbxx/1.0.0/lmdb++.h"
 		DOWNLOAD_NO_EXTRACT TRUE
+		CONFIGURE_COMMAND ""
+		BUILD_COMMAND ""
 		)
-	if(NOT lmdbxx_POPULATED)
-		FetchContent_Populate(lmdbxx)
-	endif()
+	FetchContent_Populate(lmdbxx)
 	add_library(lmdbxx INTERFACE)
 	target_include_directories(lmdbxx INTERFACE ${lmdbxx_SOURCE_DIR})
 	add_library(lmdbxx::lmdbxx ALIAS lmdbxx)
-- 
GitLab