Hi,<br><br>In Windows-GNU.make:<br><br>  # Support very long lists of object files.<br>  if(&quot;${CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG}&quot; STREQUAL &quot;@&quot;)<br>    foreach(rule CREATE_SHARED_MODULE CREATE_SHARED_LIBRARY LINK_EXECUTABLE)<br>

      # The gcc/collect2/ld toolchain does not use response files<br>      # internally so we cannot pass long object lists.  Instead pass<br>      # the object file list in a response file to the archiver to put<br>      # them in a temporary archive.  Hand the archive to the linker.<br>

      string(REPLACE &quot;&lt;OBJECTS&gt;&quot; &quot;-Wl,--whole-archive &lt;OBJECT_DIR&gt;/objects.a -Wl,--no-whole-archive&quot;<br>        CMAKE_${lang}_${rule} &quot;${CMAKE_${lang}_${rule}}&quot;)<br>      set(CMAKE_${lang}_${rule}<br>

        &quot;&lt;CMAKE_COMMAND&gt; -E remove -f &lt;OBJECT_DIR&gt;/objects.a&quot;<br>        &quot;&lt;CMAKE_AR&gt; cr &lt;OBJECT_DIR&gt;/objects.a &lt;OBJECTS&gt;&quot;<br>        &quot;${CMAKE_${lang}_${rule}}&quot;<br>

        )<br>    endforeach()<br>  endif()<br><br>So if I use GCC generate .DLL with .DEF, not worked as expected. If I drop the code block, .DEF file will be worked as expected.<br><br>How can I disable response file in CMakeLists.txt ?<br>

<br>PS: If someone can check if there have .DEF file in &quot;&lt;OBJECTS&gt;&quot;, then append it to the final &quot;${CMAKE_${lang}_${rule}}&quot;, it should be fine too.<br><br>--<br>Dongsheng<br><br>