ENH: Trick VTK_WRAP_JAVA in a better way (avoid CUSTOM_TARGET)
This commit is contained in:
parent
7d70285c86
commit
9b78a74ed0
|
@ -82,16 +82,18 @@ VTK_WRAP_PYTHON (wraplibPython Python_SRCS SRCS)
|
||||||
# Wrap VTK -> Java
|
# Wrap VTK -> Java
|
||||||
#
|
#
|
||||||
# VTK_WRAP_JAVA puts dependencie between wraplibJavaJavaClasses (in ALL)
|
# VTK_WRAP_JAVA puts dependencie between wraplibJavaJavaClasses (in ALL)
|
||||||
# and each Java wrapped class (here, vtkIncluded, although it is not created).
|
# and each Java wrapped class (here, vtkIncluded, so let's create a dummy one
|
||||||
# A custom target is created to trick 'make' so that the build succeeds.
|
# so that the build succeeds.
|
||||||
#
|
#
|
||||||
SET (VTK_WRAP_JAVA "On")
|
SET (VTK_WRAP_JAVA "On")
|
||||||
SET (VTK_WRAP_JAVA_EXE "echo")
|
SET (VTK_WRAP_JAVA_EXE "echo")
|
||||||
SET (VTK_PARSE_JAVA_EXE "echo")
|
SET (VTK_PARSE_JAVA_EXE "echo")
|
||||||
SET (VTK_JAVA_HOME ".")
|
SET (VTK_JAVA_HOME "${Wrapping_BINARY_DIR}/java")
|
||||||
VTK_WRAP_JAVA (wraplibJava Java_SRCS SRCS)
|
VTK_WRAP_JAVA (wraplibJava Java_SRCS SRCS)
|
||||||
ADD_CUSTOM_TARGET(${VTK_JAVA_HOME}/vtkIncluded.java
|
CONFIGURE_FILE(
|
||||||
echo "Triggering custom target vtkIncluded.java")
|
${Wrapping_SOURCE_DIR}/dummy
|
||||||
|
${VTK_JAVA_HOME}/vtkIncluded.java
|
||||||
|
COPYONLY IMMEDIATE)
|
||||||
|
|
||||||
#
|
#
|
||||||
# QT Wrappers
|
# QT Wrappers
|
||||||
|
|
Loading…
Reference in New Issue