|
Notes |
|
|
(0017470)
|
|
Bill Hoffman
|
|
2009-09-14 15:04
|
|
|
I think it uses a MODULE and not a shared library. |
|
|
|
(0019046)
|
|
Daniel Tihelka
|
|
2010-01-07 07:02
|
|
Well, but it builds shared library, didn't it ;-)
So I thought that the options set in CMAKE_SHARED_LINKER_FLAGS are/should be passed to a compiler when the shared library is built.
Setting verbose makefile, it produces something like (paths simplyfied):
[ 94%] Swig source
cd /home/.../wrap/python && /usr/bin/swig -python -I/home/.../wrap/python/ -outdir /home/.../wrap/python -c++ -I/home/.../src -I/usr/include/python2.5 -o /home/.../wrap/python/MyLibPYTHON_wrap.cxx /home/.../MyLib.i
/usr/bin/cmake -E cmake_progress_report /home/.../CMakeFiles 53
[ 96%] Building CXX object wrap/python/.../MyLibPYTHON_wrap.cxx.o
cd /home/.../wrap/python && /usr/bin/c++ -O3 -DNDEBUG -fPIC -I/home/.../src -I/usr/include/python2.5 -o CMakeFiles/.../MyLibPYTHON_wrap.cxx.o -c /home/.../wrap/python/MyLibPYTHON_wrap.cxx
Linking CXX shared module _mylib.so
cd /home/.../wrap/python && /usr/bin/cmake -E cmake_link_script CMakeFiles/_mylib.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -O3 -DNDEBUG -fPIC -shared -Wl,-soname,_mylib.so -o _mylib.so CMakeFiles/.../MyLibPYTHON_wrap.cxx.o ../../src/MyLib.a
but I would like the value of ${CMAKE_SHARED_LINKER_FLAGS} appear in the last step command, like:
/usr/bin/c++ -fPIC -O3 -DNDEBUG -fPIC -shared value_of_CMAKE_SHARED_LINKER_FLAGS_option ..... |
|
|
|
(0021224)
|
|
donblas
|
|
2010-07-04 07:37
|
|
|
I've run into this issue as well. Any timetable on a solution/workaround? |
|
|
|
(0021236)
|
|
donblas
|
|
2010-07-04 14:28
|
|
|
|
|
(0041555)
|
|
Kitware Robot
|
|
2016-06-10 14:27
|
|
Resolving issue as `moved`.
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
|