Calling find_package(wpilib) often fails when a library like wpilibc is not built and installed. This is because the *_DEP_REPLACE variables filled in wpilib-config.cmake with find_dependency calls to libraries that weren't built. The *_DEP_REPLACE variables have been moved to make it less error-prone by adding a library and setting its variable in the same block.
Calling
find_package(wpilib)
often fails when a library like wpilibc is not built and installed. This is because the*_DEP_REPLACE
variables filled in wpilib-config.cmake withfind_dependency
calls to libraries that weren't built. The*_DEP_REPLACE
variables have been moved to make it less error-prone by adding a library and setting its variable in the same block.