From 36fe8276020cbec28918b19774acdd980f1bed66 Mon Sep 17 00:00:00 2001 From: Ryan Mast <3969255+nightlark@users.noreply.github.com> Date: Wed, 31 Jan 2024 02:51:40 -0800 Subject: [PATCH] Tell CMake the c++ standard is required --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 724b4a2..78783cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,6 +163,7 @@ if(NOT WIN_USE_PREBUILT) #URL "https://github.com/swig/swig/archive/master.tar.gz" CMAKE_CACHE_ARGS -DBUILD_TESTING:BOOL=OFF + -DCMAKE_CXX_STANDARD_REQUIRED:BOOL=ON -DCMAKE_CXX_STANDARD:STRING=11 -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} "-DCMAKE_C_FLAGS:STRING=${_swig_build_flags}"