summaryrefslogtreecommitdiffstats
path: root/Modules/UseJava.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@sap.com>2016-01-19 08:52:04 (GMT)
committerBrad King <brad.king@kitware.com>2016-01-19 15:36:11 (GMT)
commit18c3714f4f4cf35f2b040d887850cb3607345e5d (patch)
tree93d857c6d02f2b19a8bd4e7b8b4ee72a03ce8cd5 /Modules/UseJava.cmake
parent249aac71d0b0022031d16963f3b46f9860919104 (diff)
downloadCMake-18c3714f4f4cf35f2b040d887850cb3607345e5d.zip
CMake-18c3714f4f4cf35f2b040d887850cb3607345e5d.tar.gz
CMake-18c3714f4f4cf35f2b040d887850cb3607345e5d.tar.bz2
UseJava: Fix create_javah CLASSPATH handling on Windows
Preserve semicolons in the value.
Diffstat (limited to 'Modules/UseJava.cmake')
-rw-r--r--Modules/UseJava.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/UseJava.cmake b/Modules/UseJava.cmake
index 6146d78..adaba02 100644
--- a/Modules/UseJava.cmake
+++ b/Modules/UseJava.cmake
@@ -1212,7 +1212,7 @@ function (create_javah)
set (_output_files)
if (WIN32 AND NOT CYGWIN AND CMAKE_HOST_SYSTEM_NAME MATCHES "Windows")
- set(_classpath_sep ";")
+ set(_classpath_sep "$<SEMICOLON>")
else ()
set(_classpath_sep ":")
endif()
@@ -1242,7 +1242,7 @@ function (create_javah)
endif()
endforeach()
string (REPLACE ";" "${_classpath_sep}" _classpath "${_classpath}")
- list (APPEND _javah_options -classpath ${_classpath})
+ list (APPEND _javah_options -classpath "${_classpath}")
endif()
if (_create_javah_OUTPUT_DIR)