DiscussionsIssue archiveOCCT:Configuration

Archived issue #0025141

CMake / MinGW: link recipe fails due to long command

Open CASCADEOCCT:Configurationclosed2 public notes

Search issues

Description

MinGW make procedure can not build TKGeomAlgo library. The problem appears during linking: linker command exceeds windows CMD line limit. The linker command contains complete list of object files generated by compiler.

The problem can be solved by adding the following CMake configuration options:
- CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS
- CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS

These options tell CMake to generate a single response file which enlist all of the object files. The single response file will be passed to the linker instead of enlisting all of the generated object files.

Built with:
* CMake version 3.0
* MinGW
* Eclipse Juno CDT4

Public activity

2 archived notes

Participants are labeled by their role within this record.

01Commenter 1
#0024888 issue contains the changes
02Commenter 1
Fix has been been integrated with integration for 0024888

Related records