From fffe56693146b7ef0551accc33dcca78cbd728e8 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Sat, 28 Sep 2024 16:41:44 +1200 Subject: [PATCH] try compiling as c++ on windows --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 86955ec..ca72ae0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,12 @@ cmake_minimum_required(VERSION 3.28) -project(clay C) +if (MSVC) +project(clay CXX) +set(CMAKE_CXX_STANDARD 20) +else () +project(clay C) set(CMAKE_C_STANDARD 99) +endif() add_subdirectory("examples/raylib-sidebar-scrolling-container") add_subdirectory("examples/clay-official-website") \ No newline at end of file