diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 700511b636..3cc35a0acf 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -7,6 +7,9 @@ endif() #add_subdirectory( libeval ) #add_subdirectory( libeval_compiler ) +if( KICAD_SPICE ) + set( INC_AFTER ${INC_AFTER} ${NGSPICE_INCLUDE_DIR} ) +endif() include_directories( BEFORE ${INC_BEFORE} ) include_directories( diff --git a/pcbnew/drc/drc.cpp b/pcbnew/drc/drc.cpp index e9da02fb61..9ce53edc2f 100644 --- a/pcbnew/drc/drc.cpp +++ b/pcbnew/drc/drc.cpp @@ -536,7 +536,9 @@ void DRC::testPadClearances( BOARD_COMMIT& aCommit ) dummyEdge.SetLayer( Edge_Cuts ); if( pad->GetRuleClearance( &dummyEdge, &minClearance, &m_clearanceSource ) ) + { /* minClearance and m_clearanceSource set in GetRuleClearance() */; + } for( auto it = m_board_outlines.IterateSegmentsWithHoles(); it; it++ ) {