summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeJavaCompiler.cmake.in
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-11 20:22:04 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-11 20:22:04 (GMT)
commitbea1a5de771832463299146b4f2e4317c37f30bc (patch)
treeb22c7527b5e9d4b21971f6b3d6d8aeda84e0015a /Modules/CMakeJavaCompiler.cmake.in
parent9f16292b6a3a5959b2e7ddb11e54029b02701965 (diff)
downloadCMake-bea1a5de771832463299146b4f2e4317c37f30bc.zip
CMake-bea1a5de771832463299146b4f2e4317c37f30bc.tar.gz
CMake-bea1a5de771832463299146b4f2e4317c37f30bc.tar.bz2
ENH: CMAKE_<LANG>_LINKER_PREFERENCE is now an integer priority, not a
two-step priority (None or Prefered) Current order: ASM 0, C 10, Fortran 20, CXX 30, Java 40 This is the same order as automake choses: http://www.gnu.org/software/automake/manual/html_node/How-the-Linker-is-Chosen.html This change should be backward compatible: if there is a project using fortran and CXX, they had to set the LINKER_LANGUAGE explicitely, otherwise cmake complained (but still generated the project files). Explicitely setting the linker language still overrides automatic detection. If somebody has a custom language for cmake and the PREFERENCE starts with "P", its changed to 100, which gives it preference over all other languages (except the other custom languages which have also "Prefered"). "None" is converted to 0. Alex
Diffstat (limited to 'Modules/CMakeJavaCompiler.cmake.in')
-rw-r--r--Modules/CMakeJavaCompiler.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeJavaCompiler.cmake.in b/Modules/CMakeJavaCompiler.cmake.in
index c9eeb14..83c1ee4 100644
--- a/Modules/CMakeJavaCompiler.cmake.in
+++ b/Modules/CMakeJavaCompiler.cmake.in
@@ -5,7 +5,7 @@ SET(CMAKE_Java_ARCHIVE "@CMAKE_Java_ARCHIVE@")
SET(CMAKE_Java_COMPILER_LOADED 1)
SET(CMAKE_Java_SOURCE_FILE_EXTENSIONS java)
-SET(CMAKE_Java_LINKER_PREFERENCE Prefered)
+SET(CMAKE_Java_LINKER_PREFERENCE 40)
SET(CMAKE_Java_OUTPUT_EXTENSION .class)
SET(CMAKE_STATIC_LIBRARY_PREFIX_Java "")
SET(CMAKE_STATIC_LIBRARY_SUFFIX_Java ".jar")