Notes |
|
(0029353)
|
Rolf Eike Beer
|
2012-04-27 05:01
|
|
Please also provide a stripped down version of your CMakeLists.txt. |
|
|
(0029356)
|
Galeazzi
|
2012-04-27 05:21
|
|
project (MyProject)
set(SourcesList D:/SourceFolder/wrapper.i
D:/SourceFolder/example.cpp
D:/SourceFolder/example.h
D:/SourceFolder/DLLMacros.h
)
include_directories(C:/Tools/Libs
C:/Include)
set(COMPILE_DEF DLLEXPORT;__TOOLS__)
#SWIG Section
FIND_PACKAGE(SWIG REQUIRED)
INCLUDE(${SWIG_USE_FILE})
SET(CMAKE_SWIG_FLAGS "")
SET_SOURCE_FILES_PROPERTIES(D:/SourceFolder/wrapper.i PROPERTIES CPLUSPLUS ON)
SWIG_ADD_MODULE(MyProject csharp ${SourcesList})
set_property(TARGET MyProject APPEND PROPERTY COMPILE_DEFINITIONS ${COMPILE_DEF} ) |
|
|
(0029357)
|
Rolf Eike Beer
|
2012-04-27 06:46
|
|
Thank you.
AFAICS this happens because of the fiddling with the source and binary paths in SWIG_ADD_SOURCE_TO_MODULE. I don't understand what is happening there and why it doesn't just use get_filename_component(ABSOLUTE).
As a workaround you could put the source file as a relative path to your source dir into the CMakeLists.txt, that should work for the moment. |
|
|
(0034546)
|
jschueller
|
2013-11-25 09:08
|
|
|
|
(0036027)
|
Robert Maynard
|
2014-06-02 08:37
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|