From de69929c89255167dfa9b12d0465a7465d081325 Mon Sep 17 00:00:00 2001 From: "Aaron B. Dwyer" Date: Mon, 17 Mar 2025 20:27:42 -0700 Subject: [PATCH] CMakeLists.txt: Set the C++ standard to 17 so "if constexpr" is formally available. Fixes the build on Visual Studio + CMake. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e2c7a1d..97a6e3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,8 @@ # It should also work without this option, but we do not test with it. cmake_minimum_required(VERSION 3.5) -project(basisu) +project(basisu C CXX) +set(CMAKE_CXX_STANDARD 17) option(STATIC "static linking" FALSE) option(SAN "sanitize" FALSE)