From 62719176824a28fbb96656f8d4207723b9d26505 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 3 Jan 2023 15:55:54 -0800 Subject: [PATCH] Remove deprecated -py3 flag, use -O for swig --- pcbnew/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index c900da0918..d9290f6994 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -451,10 +451,7 @@ endforeach() # i.e. swig_add_footprint()) because we want full control. # Avoid threading in SWIG (breaks threads in pcbnew) -set( SWIG_OPTS -python -c++ -nothreads ) - -# Use python3-specific features -set( SWIG_OPTS ${SWIG_OPTS} -py3 ) +set( SWIG_OPTS -python -c++ -nothreads -O ) set( SWIG_OPTS ${SWIG_OPTS} -outdir ${CMAKE_CURRENT_BINARY_DIR} ${SWIG_FLAGS} )