summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeJavaCompiler.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-07 21:12:37 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-07 21:12:37 (GMT)
commit52eb0ccac76b0f4066af11d9ed4537204633548a (patch)
tree78505b8e32417eaf945c8a2ca929a11f8c1644cc /Modules/CMakeJavaCompiler.cmake.in
parent9f2790d3e7e5a1e8e564d7f670fe2ff8b28cf6e6 (diff)
downloadCMake-52eb0ccac76b0f4066af11d9ed4537204633548a.zip
CMake-52eb0ccac76b0f4066af11d9ed4537204633548a.tar.gz
CMake-52eb0ccac76b0f4066af11d9ed4537204633548a.tar.bz2
BUG: Restore old interface of "make foo.o" and "make foo.i" even though object file names now include source extensions. For Java we also need to always remove the source extension (.java -> .class). This fixes the re-opening of bug #6169.
Diffstat (limited to 'Modules/CMakeJavaCompiler.cmake.in')
-rw-r--r--Modules/CMakeJavaCompiler.cmake.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeJavaCompiler.cmake.in b/Modules/CMakeJavaCompiler.cmake.in
index 83c1ee4..79c9288 100644
--- a/Modules/CMakeJavaCompiler.cmake.in
+++ b/Modules/CMakeJavaCompiler.cmake.in
@@ -7,6 +7,7 @@ SET(CMAKE_Java_COMPILER_LOADED 1)
SET(CMAKE_Java_SOURCE_FILE_EXTENSIONS java)
SET(CMAKE_Java_LINKER_PREFERENCE 40)
SET(CMAKE_Java_OUTPUT_EXTENSION .class)
+SET(CMAKE_Java_OUTPUT_EXTENSION_REPLACE 1)
SET(CMAKE_STATIC_LIBRARY_PREFIX_Java "")
SET(CMAKE_STATIC_LIBRARY_SUFFIX_Java ".jar")
SET(CMAKE_Java_COMPILER_ENV_VAR "JAVA_COMPILER")