summaryrefslogtreecommitdiffstats
path: root/Modules/UseJava.cmake
diff options
context:
space:
mode:
authorNathan Burles <nathan.burles@uk.ibm.com>2019-11-04 10:40:42 (GMT)
committerBrad King <brad.king@kitware.com>2019-11-20 15:38:44 (GMT)
commit8d47b97a695111d2718c9f7a7729516e3a18e15e (patch)
tree836cd2f4a098520f1e453abc23f7699dadaace8e /Modules/UseJava.cmake
parent1b27ac78ac80a0edeaa90038a15b6ac985a29880 (diff)
downloadCMake-8d47b97a695111d2718c9f7a7729516e3a18e15e.zip
CMake-8d47b97a695111d2718c9f7a7729516e3a18e15e.tar.gz
CMake-8d47b97a695111d2718c9f7a7729516e3a18e15e.tar.bz2
UseJava: Use correct path separator in javadoc
For both classpath and sourcepath.
Diffstat (limited to 'Modules/UseJava.cmake')
-rw-r--r--Modules/UseJava.cmake24
1 files changed, 4 insertions, 20 deletions
diff --git a/Modules/UseJava.cmake b/Modules/UseJava.cmake
index 27f1218..28f74ea 100644
--- a/Modules/UseJava.cmake
+++ b/Modules/UseJava.cmake
@@ -1190,29 +1190,13 @@ function(create_javadoc _target)
set(_javadoc_options -d ${_javadoc_builddir})
if (_javadoc_sourcepath)
- set(_start TRUE)
- foreach(_path IN LISTS _javadoc_sourcepath)
- if (_start)
- set(_sourcepath ${_path})
- set(_start FALSE)
- else ()
- set(_sourcepath ${_sourcepath}:${_path})
- endif ()
- endforeach()
- list(APPEND _javadoc_options -sourcepath ${_sourcepath})
+ list(JOIN _javadoc_sourcepath "${_UseJava_PATH_SEP}" _javadoc_sourcepath)
+ list(APPEND _javadoc_options -sourcepath "\"${_javadoc_sourcepath}\"")
endif ()
if (_javadoc_classpath)
- set(_start TRUE)
- foreach(_path IN LISTS _javadoc_classpath)
- if (_start)
- set(_classpath ${_path})
- set(_start FALSE)
- else ()
- set(_classpath ${_classpath}:${_path})
- endif ()
- endforeach()
- list(APPEND _javadoc_options -classpath "${_classpath}")
+ list(JOIN _javadoc_classpath "${_UseJava_PATH_SEP}" _javadoc_classpath)
+ list(APPEND _javadoc_options -classpath "\"${_javadoc_classpath}\"")
endif ()
if (_javadoc_doctitle)