[build] CMake: Build the HAL even if WITH_CSCORE=OFF (#3449)

Also handle the case of WITH_WPILIB=OFF WITH_SIMULATION_MODULES=ON.
This commit is contained in:
Peter Johnson
2021-06-19 09:30:49 -07:00
committed by GitHub
parent 7aae2b72dc
commit b0f1ae7ea3

View File

@@ -191,15 +191,18 @@ if (WITH_GUI)
add_subdirectory(outlineviewer)
endif()
if (WITH_WPILIB OR WITH_SIMULATION_MODULES)
set(HAL_DEP_REPLACE ${HAL_DEP_REPLACE_IMPL})
add_subdirectory(hal)
endif()
if (WITH_CSCORE)
set(CSCORE_DEP_REPLACE ${CSCORE_DEP_REPLACE_IMPL})
set(CAMERASERVER_DEP_REPLACE ${CAMERASERVER_DEP_REPLACE_IMPL})
add_subdirectory(cscore)
add_subdirectory(cameraserver)
if (WITH_WPILIB)
set(HAL_DEP_REPLACE ${HAL_DEP_REPLACE_IMPL})
set(WPILIBC_DEP_REPLACE ${WPILIBC_DEP_REPLACE_IMPL})
add_subdirectory(hal)
add_subdirectory(wpilibj)
add_subdirectory(wpilibc)
add_subdirectory(wpilibNewCommands)