mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
common: fix KICADn_3RD_PARTY version expansion
Adding logic to handle KICADn_3RD_PARTY expansion, preventing backwards-compatible libraries from incorrectly report missing files Fixes https://gitlab.com/kicad/code/kicad/issues/17600
This commit is contained in:
parent
f5765bac7f
commit
0ed48b43f8
@ -269,6 +269,11 @@ wxString KIwxExpandEnvVars( const wxString& str, const PROJECT* aProject, std::s
|
|||||||
if( getVersionedEnvVar( "KICAD*_FOOTPRINT_DIR", strResult ) )
|
if( getVersionedEnvVar( "KICAD*_FOOTPRINT_DIR", strResult ) )
|
||||||
expanded = true;
|
expanded = true;
|
||||||
}
|
}
|
||||||
|
else if( strVarName.Matches( "KICAD*_3RD_PARTY" ) )
|
||||||
|
{
|
||||||
|
if( getVersionedEnvVar( "KICAD*_3RD_PARTY", strResult ) )
|
||||||
|
expanded = true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// variable doesn't exist => don't change anything
|
// variable doesn't exist => don't change anything
|
||||||
|
Loading…
x
Reference in New Issue
Block a user