MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0016110 | CMake | CMake | public | 2016-05-25 18:46 | 2016-06-10 14:31 |
| Reporter | Roman Popov | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0016110: LINK_LIBRARIES contains both libraries and flags, separate variables required | ||||
| Description | For example, if I write my own link rule: set(CMAKE_CXX_LINK_EXECUTABLE "echo \" <LINK_LIBRARIES> \" ") LINK_LIBRARIES will evaluate to : - flags (like: -rdynamic -Wl,-rpath,rpath1:rpath2 ...) - static libraries (like: lib1.a -lthreads ...) - dynamic libraries (like: libdlib.so ) To support new gcc-compatible linking tools (for example Synopsys VCS or Cadence NCSIM ) flags and libs need to be separated: for example into some new variables: LINK_LIBRARIES_FLAGS , LINK_LIBRARIES_STATIC, LINK_LIBRARIES_SHARED. In that case user can simply define new linking rules, for example: (CMAKE_CXX_LINK_EXECUTABLE "vcs -sysc -LDFLAGS \" <LINK_LIBRARIES_FLAGS> \" <LINK_LIBRARIES_STATIC> <LINK_LIBRARIES_SHARED> <OBJECTS>") | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2016-05-25 18:46 | Roman Popov | New Issue | |||
| 2016-05-25 18:48 | Roman Popov | Note Added: 0041095 | |||
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0043007 | |||
| 2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
| 2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||