View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000834 | CMake | public | 2004-05-11 23:30 | 2004-05-17 15:40 | |||||
Reporter | Mathieu Malaterre | ||||||||
Assigned To | Bill Hoffman | ||||||||
Priority | low | Severity | feature | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000834: SWIG_LINK_LIBRARIES and linking to library | ||||||||
Description | I have a project gdcm where I generate ligdcm.so and I want to generate _gdcm.so (swig wrapping). Thus I end up with: ADD_LIBRARY(gdcm foobar.cxx) SWIG_LINK_LIBRARIES(gdcm gdcm ${PYTHON_LIBRARIES}) And cmake get confused (first gdcm refer to _gdcm and second refer to libgdcm) Therefore to work around I did: SWIG_LINK_LIBRARIES(gdcm ${PYTHON_LIBRARIES}) TARGET_LINK_LIBRARIES(_gdcm gdcm) | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0001065) Bill Hoffman (manager) 2004-05-17 15:40 |
I tried this in CMake/Tests/SwigTest/CMakeLists.txt: ADD_LIBRARY(example example.cxx) SWIG_ADD_MODULE(example "${language}" example.i ) SWIG_LINK_LIBRARIES(example example ${SWIG_LANG_LIBRARIES}) So there is a library called example and a python module called _example, and it works fine. I tried with cygwin and windows. -Bill |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |