summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineJavaCompiler.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-01-25 16:41:05 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-01-25 16:41:05 (GMT)
commitaa98e3647dff8cfc66f5ef4f93e044543c93b02a (patch)
tree7bc09ebd666025951a2cd5598c3df8e9ddb7b6e9 /Modules/CMakeDetermineJavaCompiler.cmake
parent269b66d50aba8285f3ad7935141968dd33dcd820 (diff)
downloadCMake-aa98e3647dff8cfc66f5ef4f93e044543c93b02a.zip
CMake-aa98e3647dff8cfc66f5ef4f93e044543c93b02a.tar.gz
CMake-aa98e3647dff8cfc66f5ef4f93e044543c93b02a.tar.bz2
ENH: fix more than one argument passed in to compilers via environment
Diffstat (limited to 'Modules/CMakeDetermineJavaCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineJavaCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineJavaCompiler.cmake b/Modules/CMakeDetermineJavaCompiler.cmake
index dcd47d8..2edb46d 100644
--- a/Modules/CMakeDetermineJavaCompiler.cmake
+++ b/Modules/CMakeDetermineJavaCompiler.cmake
@@ -8,7 +8,7 @@ IF(NOT CMAKE_Java_COMPILER)
IF($ENV{JAVA_COMPILER} MATCHES ".+")
GET_FILENAME_COMPONENT(CMAKE_Java_COMPILER_INIT $ENV{JAVA_COMPILER} PROGRAM PROGRAM_ARGS CMAKE_Java_FLAGS_ENV_INIT)
IF(CMAKE_Java_FLAGS_ENV_INIT)
- SET(CMAKE_Java_COMPILER_ARG1 ${CMAKE_Java_FLAGS_ENV_INIT} CACHE STRING "First argument to Java compiler")
+ SET(CMAKE_Java_COMPILER_ARG1 "${CMAKE_Java_FLAGS_ENV_INIT}" CACHE STRING "First argument to Java compiler")
ENDIF(CMAKE_Java_FLAGS_ENV_INIT)
IF(EXISTS ${CMAKE_Java_COMPILER_INIT})
ELSE(EXISTS ${CMAKE_Java_COMPILER_INIT})