[build] Fix wpilibNewCommands CMake install (#5671)

This commit is contained in:
Gold856
2023-09-20 00:19:35 -04:00
committed by GitHub
parent 6ef94de9b5
commit 87ce1e3761
3 changed files with 3 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ WPILib is normally built with Gradle, however for some systems, such as Linux ba
* halsim
* wpigui
* wpimath
* wpilibNewCommands
By default, all libraries except for the HAL and WPILib get built with a default CMake setup. The libraries are built as shared libraries, and include the JNI libraries as well as building the Java JARs.

View File

@@ -11,3 +11,4 @@ find_dependency(Threads)
@CAMERASERVER_DEP_REPLACE@
@HAL_DEP_REPLACE@
@WPILIBC_DEP_REPLACE@
@WPILIBNEWCOMMANDS_DEP_REPLACE@

View File

@@ -23,7 +23,7 @@ if (WITH_JAVA)
set (wpilibNewCommands_config_dir share/wpilibNewCommands)
endif()
install(FILES wpilibNewCommands-config.cmake DESTINATION ${wpilibNewCommands_config_dir})
install(FILES ${WPILIB_BINARY_DIR}/wpilibNewCommands-config.cmake DESTINATION ${wpilibNewCommands_config_dir})
endif()
file(GLOB_RECURSE wpilibNewCommands_native_src src/main/native/cpp/*.cpp)