|
@@ -1337,8 +1337,9 @@ cmPrRC_t _cmPrefsCreateJsonNode(
|
1337
|
1337
|
pnp->id = _cmPrefsCalcNextAvailId(p);
|
1338
|
1338
|
else
|
1339
|
1339
|
{
|
1340
|
|
- if( _cmPrefsIdToNodePtr(p, id, false ) != NULL )
|
1341
|
|
- cmErrWarnMsg(&p->err,kDuplicateIdPrRC,"The preference variable id '%i' is used by multiple preference variables including '%s'.",id,cmStringNullGuard(pathString));
|
|
1340
|
+ if( existsFl == false )
|
|
1341
|
+ if( _cmPrefsIdToNodePtr(p, id, false ) != NULL )
|
|
1342
|
+ cmErrWarnMsg(&p->err,kDuplicateIdPrRC,"The preference variable id '%i' is used by multiple preference variables including '%s'.",id,cmStringNullGuard(pathString));
|
1342
|
1343
|
|
1343
|
1344
|
pnp->id = id;
|
1344
|
1345
|
}
|