summaryrefslogtreecommitdiffstats
path: root/Tests/Wrapping/CMakeLists.txt
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-02-12 22:38:41 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-02-12 22:38:41 (GMT)
commit9b78a74ed0c3c84e9d63b8c6dc848601976163a5 (patch)
treec5476797a4206abb4bf9a08fdf5d8e278c998b7a /Tests/Wrapping/CMakeLists.txt
parent7d70285c867812be9ff23b3bec7c8e79548d2e69 (diff)
downloadCMake-9b78a74ed0c3c84e9d63b8c6dc848601976163a5.zip
CMake-9b78a74ed0c3c84e9d63b8c6dc848601976163a5.tar.gz
CMake-9b78a74ed0c3c84e9d63b8c6dc848601976163a5.tar.bz2
ENH: Trick VTK_WRAP_JAVA in a better way (avoid CUSTOM_TARGET)
Diffstat (limited to 'Tests/Wrapping/CMakeLists.txt')
-rw-r--r--Tests/Wrapping/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/Tests/Wrapping/CMakeLists.txt b/Tests/Wrapping/CMakeLists.txt
index 62f2e6f..1cc8b0e 100644
--- a/Tests/Wrapping/CMakeLists.txt
+++ b/Tests/Wrapping/CMakeLists.txt
@@ -82,16 +82,18 @@ VTK_WRAP_PYTHON (wraplibPython Python_SRCS SRCS)
# Wrap VTK -> Java
#
# VTK_WRAP_JAVA puts dependencie between wraplibJavaJavaClasses (in ALL)
-# and each Java wrapped class (here, vtkIncluded, although it is not created).
-# A custom target is created to trick 'make' so that the build succeeds.
+# and each Java wrapped class (here, vtkIncluded, so let's create a dummy one
+# so that the build succeeds.
#
SET (VTK_WRAP_JAVA "On")
SET (VTK_WRAP_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)
-ADD_CUSTOM_TARGET(${VTK_JAVA_HOME}/vtkIncluded.java
- echo "Triggering custom target vtkIncluded.java")
+CONFIGURE_FILE(
+ ${Wrapping_SOURCE_DIR}/dummy
+ ${VTK_JAVA_HOME}/vtkIncluded.java
+ COPYONLY IMMEDIATE)
#
# QT Wrappers