@@ -1,17 +1,8 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See https://cmake.org/licensing for details.
|
||||
|
||||
#[=======================================================================[.rst:
|
||||
UseJavaClassFilelist
|
||||
--------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
This script create a list of compiled Java class files to be added to
|
||||
a jar file. This avoids including cmake files which get created in
|
||||
the binary directory.
|
||||
#]=======================================================================]
|
||||
# This script creates a list of compiled Java class files to be added to
|
||||
# a jar file. This avoids including cmake files which get created in
|
||||
# the binary directory.
|
||||
|
||||
if (CMAKE_JAVA_CLASS_OUTPUT_PATH)
|
||||
if (EXISTS "${CMAKE_JAVA_CLASS_OUTPUT_PATH}")
|
||||
@@ -23,7 +14,7 @@ if (CMAKE_JAVA_CLASS_OUTPUT_PATH)
|
||||
|
||||
file(GLOB_RECURSE _JAVA_GLOBBED_TMP_FILES "${CMAKE_JAVA_CLASS_OUTPUT_PATH}/${JAR_CLASS_PREFIX}/*.class")
|
||||
if (_JAVA_GLOBBED_TMP_FILES)
|
||||
list (APPEND _JAVA_GLOBBED_FILES ${_JAVA_GLOBBED_TMP_FILES})
|
||||
list(APPEND _JAVA_GLOBBED_FILES ${_JAVA_GLOBBED_TMP_FILES})
|
||||
endif ()
|
||||
endforeach()
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user