From 588d4c33a04f5779339c52c8a72efb31fe333dad Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Fri, 10 Jun 2016 14:08:35 -0400 Subject: [PATCH] Set minumum SWIG version to 3.0 for C++11 support. --- pcbnew/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index 9af0f79968..c4aff5177a 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -8,7 +8,9 @@ add_dependencies( pnsrouter pcbcommon ) if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES ) file( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripting ) - find_package( SWIG REQUIRED ) + + # SWIG 3.0 or later require for C++11 support. + find_package( SWIG 3.0 REQUIRED ) include( ${SWIG_USE_FILE} ) # Infrequently needed headers go at end of search paths, append to INC_AFTER