From 9bc5fcf886a2a714bddb0424ec220debdeec3723 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 3 Dec 2023 20:14:34 -0800 Subject: [PATCH] [build] cmake: Default WITH_JAVA_SOURCE to WITH_JAVA (#6005) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dc0a628b7d..d0af74c68f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,7 @@ endif("${isSystemDir}" STREQUAL "-1") # Options for building certain parts of the repo. Everything is built by default. option(BUILD_SHARED_LIBS "Build with shared libs (needed for JNI)" ON) option(WITH_JAVA "Include Java and JNI in the build" ON) -option(WITH_JAVA_SOURCE "Build Java source jars" ON) +option(WITH_JAVA_SOURCE "Build Java source jars" ${WITH_JAVA}) option(WITH_CSCORE "Build cscore (needs OpenCV)" ON) option(WITH_NTCORE "Build ntcore" ON) option(WITH_WPIMATH "Build wpimath" ON)