[CMake] Problem to set /LIBPATH in Swig + Python + Windows.
Fernando Luz
fernando_luz at tpn.usp.br
Fri Sep 9 12:30:32 EDT 2011
Hi,
I need to use a mix with SWIG and Python in a windows environment. I
used SWIG_LINK_LIBRARIES( blabla ${PYTHON_LIBRARIES}) where
${PYTHON_LIBRARIES} I get using FindPackage(PythonLibs).
But I have blank space in ${PYTHON_LIBRARIES} and this cause a error in
my vcproj. Ex.
If ${PYTHON_LIBRARIES} = "C:\arquivos de programas\fernando_luz\teste
\libteste.lib"
in vcproj, the list of libraries became
"C:\arquivos
de
programas\fernando_luz\teste\libteste.lib"
in other words, I have 3 libs...
I looked in mail list and I tried split the path and name of
python_libraries, but I don't have success... I tried
SET_TARGET_PROPERTIES( target PROPERTIES LINK_FLAGS "/LIBPATH:"C:
\arquivos de programas\fernando_luz\teste\" )
But I don't know who is my target, I tried _teste (because this is the name of vcproj
created) but it's don't work.
Thanks in advanced
Fernando Luz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110909/c5c128db/attachment.htm>
More information about the CMake
mailing list