From 682619facdb6b344fed9c3d516682e980a57a1ae Mon Sep 17 00:00:00 2001 From: Stephan Renatus Date: Fri, 1 Jul 2022 09:43:17 +0200 Subject: [PATCH] build: add 'CMAKE_CXX_STANDARD 11' This was needed to have this compile on my macos machine. Before, I ran into errors like "error: delegating constructors are permitted only in C++11" Found the fix searching for that in this issue: https://github.com/wjakob/nanogui/issues/302 Signed-off-by: Stephan Renatus --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a2458e..ba77630 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,7 @@ cmake_minimum_required ( VERSION 3.18 ) +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + project ( wasm-tools ) include(FetchContent)