[vtkusers] VTK and MinGW on Windows 7
David Gobbi
david.gobbi at gmail.com
Thu Sep 23 20:09:45 EDT 2010
On Thu, Sep 23, 2010 at 5:25 PM, Jim Peterson <jimcp at cox.net> wrote:
> David Gobbi wrote:
>>
>> Great. I just made the changes for the Python wrappers, it took
>> almost no time and all tests are passing. I'm less familiar with the
>> Java cmake files, though.
>
> You are way past me on that. I tried to figure it out, but failed..... I am
> willing to learn though.
Try adding the following bits to CMake/KitCommonJavaWrapBlock.cmake,
it might be the only change that is needed.
IF(WIN32 AND NOT CYGWIN)
SET_TARGET_PROPERTIES(vtk${KIT}Java PROPERTIES PREFIX "")
ENDIF(WIN32 AND NOT CYGWIN)
Here is a unified diff for context.
--- a/CMake/KitCommonJavaWrapBlock.cmake
+++ b/CMake/KitCommonJavaWrapBlock.cmake
@@ -4,6 +4,9 @@ ADD_LIBRARY(vtk${KIT}Java SHARED ${KitJava_SRCS} ${Kit_JAVA_EXTR
ADD_DEPENDENCIES(vtk${KIT}JavaJavaClasses vtk${KIT}Java)
SET(KIT_LIBRARY_TARGETS ${KIT_LIBRARY_TARGETS} vtk${KIT}Java)
TARGET_LINK_LIBRARIES(vtk${KIT}Java vtk${KIT} ${KIT_JAVA_LIBS})
+IF(WIN32 AND NOT CYGWIN)
+ SET_TARGET_PROPERTIES(vtk${KIT}Java PROPERTIES PREFIX "")
+ENDIF(WIN32 AND NOT CYGWIN)
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtk${KIT}Java
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
More information about the vtkusers
mailing list