Need a method to forbid dll generation of module for game editor

In order to link with 3rd party static library with multiple game modules, I need a way to tell UBT do not generate dll for most game modules, since the 3rd party static library have global var and private heap issues when linked into multiple dlls. I have looked into UBT but have not found a way to do it, any one can help?