The search directories use these variables ($(#wx) for wxWidgets installation dir, and $(#cb) for the location of Code::Blocks' source). As long as these two global variables are created before opening the project, the message box should not come up (or, at least it does not on my computer).