summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-04-16 20:41:49 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-04-16 20:41:49 (GMT)
commit8bdd44958b515f1bce35a865485f641364895d60 (patch)
tree61c60fd1a904a4ba96d9e2544e7e66ba51736ecb /Modules
parent31e7fadbb3bfd225e0d48e2d072ccc745d7f2689 (diff)
downloadCMake-8bdd44958b515f1bce35a865485f641364895d60.zip
CMake-8bdd44958b515f1bce35a865485f641364895d60.tar.gz
CMake-8bdd44958b515f1bce35a865485f641364895d60.tar.bz2
UseJava: fix typo in variable name (#13135)
As Dave Abrahams pointed out CMAKE_CURRENT_SOURCE_PATH is wrong, it's of course CMAKE_CURRENT_SOURCE_DIR. Also wrap the path in quotes so the example would even work if the source path has spaces.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/UseJava.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/UseJava.cmake b/Modules/UseJava.cmake
index 84d0afd..30cc920 100644
--- a/Modules/UseJava.cmake
+++ b/Modules/UseJava.cmake
@@ -130,7 +130,7 @@
# Example:
# create_javadoc(my_example_doc
# PACKAGES com.exmaple.foo com.example.bar
-# SOURCEPATH ${CMAKE_CURRENT_SOURCE_PATH}
+# SOURCEPATH "${CMAKE_CURRENT_SOURCE_DIR}"
# CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH}
# WINDOWTITLE "My example"
# DOCTITLE "<h1>My example</h1>"