Hotfix build when KICAD_SPICE=OFF

This commit is contained in:
Alex 2022-11-02 11:03:09 +05:00
parent b60c42ea41
commit c279a2e696
1 changed files with 4 additions and 0 deletions

View File

@ -646,6 +646,8 @@ std::string KIBIS_PIN::addDie( KIBIS_MODEL& aModel, KIBIS_PARAMETER& aParam, int
void KIBIS_PIN::getKuKdFromFile( std::string* aSimul )
{
#ifdef KICAD_SPICE
std::string outputFileName = m_topLevel->m_cacheDir + "temp_output.spice";
if( std::remove( outputFileName.c_str() ) )
@ -721,6 +723,8 @@ void KIBIS_PIN::getKuKdFromFile( std::string* aSimul )
m_Ku = ku;
m_Kd = kd;
m_t = t;
#endif
}