diff --git a/linux/devices/CMakeLists.txt b/linux/devices/CMakeLists.txt index 769c21f8..7d39837d 100644 --- a/linux/devices/CMakeLists.txt +++ b/linux/devices/CMakeLists.txt @@ -1,5 +1,7 @@ -target_sources(${OBSW_NAME} PRIVATE - GPSHyperionLinuxController.cpp -) +if(EIVE_BUILD_GPSD_GPS_HANDLER) + target_sources(${OBSW_NAME} PRIVATE + GPSHyperionLinuxController.cpp + ) +endif() -add_subdirectory(startracker) \ No newline at end of file +add_subdirectory(startracker)