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.
This commit is contained in:
Rolf Eike Beer 2012-04-16 22:41:49 +02:00
parent 31e7fadbb3
commit 8bdd44958b
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@
# Example: # Example:
# create_javadoc(my_example_doc # create_javadoc(my_example_doc
# PACKAGES com.exmaple.foo com.example.bar # PACKAGES com.exmaple.foo com.example.bar
# SOURCEPATH ${CMAKE_CURRENT_SOURCE_PATH} # SOURCEPATH "${CMAKE_CURRENT_SOURCE_DIR}"
# CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH} # CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH}
# WINDOWTITLE "My example" # WINDOWTITLE "My example"
# DOCTITLE "<h1>My example</h1>" # DOCTITLE "<h1>My example</h1>"