]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fix compilation of benchmark when compiler supports, but does not default to enable...
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 11 Feb 2022 14:53:00 +0000 (15:53 +0100)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 24 Feb 2022 10:50:15 +0000 (11:50 +0100)
test/benchmarks/CMakeLists.txt

index 2e87df49d68963dfd9ffabb457e29b752e47ad98..e68f54259ba7bcc7328fca00766163441bfaa4f9 100644 (file)
@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.12)
 
 include(FetchContent)
 
+set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_CXX_EXTENSIONS ON)
 enable_language(CXX)
 
 # Search for Google benchmark package