[CMake] SWIG generated .cxx file location issue.

felix felix.schwitzer at gmx.at
Wed Sep 26 17:42:30 EDT 2012


Hm strange.
I use the swigmodule a lot and it creates my .cxx files in the binary-dir;
but I have no relative path in the name of the
interface file.

Have you tried to use an absolute path like

set(SRC_FILE ${CMAKE_SOURCE_DIR}/swig/interface/context.i)

?
Relative paths are always a little bit cumbersome; what happens if your
build tree is far away from the source tree?

Felix



--
View this message in context: http://cmake.3232098.n2.nabble.com/SWIG-generated-cxx-file-location-issue-tp7581826p7581836.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list