libcommon build: add NGSPICE_INCLUDE_DIR in include list (similar to Eeschema build).
Useful when ngspice is build by the developer in a specific folder. Fix also an other minor compil warning. Fixes #4851 https://gitlab.com/kicad/code/kicad/issues/4851
This commit is contained in:
parent
afd432e687
commit
5226d6b4df
|
@ -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(
|
||||
|
|
|
@ -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++ )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue