diff options
author | Oliver Buchtala <oliver.buchtala@googlemail.com> | 2011-04-02 22:21:44 (GMT) |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-04-04 09:49:58 (GMT) |
commit | f3233ba5211596df205e6d915b06bd412087c202 (patch) | |
tree | 5e7170849252f128e56866640d349eb2d35dcc55 /Modules/UseJava.cmake | |
parent | a22ed3d62da7fad10eb1268ba4a359c62ad50488 (diff) | |
download | CMake-f3233ba5211596df205e6d915b06bd412087c202.zip CMake-f3233ba5211596df205e6d915b06bd412087c202.tar.gz CMake-f3233ba5211596df205e6d915b06bd412087c202.tar.bz2 |
Java: Create java_class_filelist only if it does't exist.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'Modules/UseJava.cmake')
-rw-r--r-- | Modules/UseJava.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/UseJava.cmake b/Modules/UseJava.cmake index 5d2e7b5..43ba668 100644 --- a/Modules/UseJava.cmake +++ b/Modules/UseJava.cmake @@ -285,7 +285,9 @@ function(add_jar _TARGET_NAME) endforeach(_JAVA_SOURCE_FILE) # create an empty java_class_filelist - file(WRITE ${CMAKE_JAVA_CLASS_OUTPUT_PATH}/java_class_filelist "") + if (NOT EXISTS ${CMAKE_JAVA_CLASS_OUTPUT_PATH}/java_class_filelist) + file(WRITE ${CMAKE_JAVA_CLASS_OUTPUT_PATH}/java_class_filelist "") + endif() # Add the target and make sure we have the latest resource files. add_custom_target(${_TARGET_NAME} ALL DEPENDS ${_JAVA_RESOURCE_FILES} ${_JAVA_DEPENDS}) |