Skip to content

Commit 7b3420e

Browse files
committed
[C++]: use find package info for building IR codecs.
1 parent fe5a25d commit 7b3420e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sbe-tool/src/main/cpp/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
# limitations under the License.
1515
#
1616

17+
find_package(Java REQUIRED)
18+
1719
add_custom_target(
1820
ir_codecs
19-
java
21+
${Java_JAVA_EXECUTABLE}
2022
"-Dsbe.output.dir=${CMAKE_CURRENT_SOURCE_DIR}"
2123
"-Dsbe.target.language=CPP"
2224
"-jar" "${SBE_JAR}"

0 commit comments

Comments
 (0)