diff options
author | Marc Chevrier <marc.chevrier@sap.com> | 2017-10-10 07:38:43 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@sap.com> | 2017-10-10 08:00:23 (GMT) |
commit | dead049e0b4ff531866ef9bf362f3f5e8fb177aa (patch) | |
tree | f9ffe4758e59beb4212234502941ec83f6b8aaaf /Tests/Java/CMakeLists.txt | |
parent | c798dc8573a205f90663e9983b793b21fea28521 (diff) | |
download | CMake-dead049e0b4ff531866ef9bf362f3f5e8fb177aa.zip CMake-dead049e0b4ff531866ef9bf362f3f5e8fb177aa.tar.gz CMake-dead049e0b4ff531866ef9bf362f3f5e8fb177aa.tar.bz2 |
UseJava: OUTPUT_DIR must exists in all cases.
Fixes: #17316
Diffstat (limited to 'Tests/Java/CMakeLists.txt')
-rw-r--r-- | Tests/Java/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/Java/CMakeLists.txt b/Tests/Java/CMakeLists.txt index e1bcf3c..0b8269b 100644 --- a/Tests/Java/CMakeLists.txt +++ b/Tests/Java/CMakeLists.txt @@ -11,3 +11,6 @@ add_jar(hello A.java HelloWorld.java) # use listing file to specify sources file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/java_fileslist "A.java\nHelloWorld.java\n") add_jar(hello2 @${CMAKE_CURRENT_BINARY_DIR}/java_fileslist) + +# use listing file to specify sources and specify output directory (issue #17316) +add_jar(hello3 @${CMAKE_CURRENT_BINARY_DIR}/java_fileslist OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/hello3") |