View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000896 | CMake | public | 2004-05-30 23:07 | 2004-06-01 08:21 | |||||
Reporter | Mathieu Malaterre | ||||||||
Assigned To | System Admin | ||||||||
Priority | low | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000896: TARGET_LINK_LIBRARIES + UseSWIG | ||||||||
Description | Using : SWIG_ADD_MODULE(gdcm python gdcm.i ) SWIG_LINK_LIBRARIES(gdcm gdcm ${PYTHON_LIBRARIES}) GET_TARGET_PROPERTY(gdcm_fullpath "${SWIG_MODULE_gdcm_REAL_NAME}" LOCATION) TARGET_LINK_LIBRARIES (MyOtherLib ${gdcm_fullpath}) This produces a library "_gdcm.so". But since this is a shared lib, cmake insist on trying to link it with: -l_gdcm . Could we add a new MACRO to link to the library created with SWIG_ADD_MODULE. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0001149) System Admin (reporter) 2004-06-01 08:21 |
You cannot portably link libraries with _ in prefix. The right approach is: ADD_LIBRARY(mygdcm ...) SWIG_LINK_LIBRARIES(gdcm mygdcm) TARGET_LINK_LIBRARIES(MyOtherLib mygdcm) |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |