It does matter.
Contrary to Lazarus, the textmode IDE is fully integrated with the compiler and does not use the commandline compiler, and thus not fpc.cfg
The corresponding setting in the textmode IDE is the "units" path (first tab of "tools"->"directories") and should read something like
c:\fpc\$FPCVERSION\units/$fpctarget/*
if you installed FPC in c:\fpc