diff --git a/Drv/LinuxGpioDriver/CMakeLists.txt b/Drv/LinuxGpioDriver/CMakeLists.txt index 6dfaaa414f..2c0192ea42 100644 --- a/Drv/LinuxGpioDriver/CMakeLists.txt +++ b/Drv/LinuxGpioDriver/CMakeLists.txt @@ -5,7 +5,7 @@ # MOD_DEPS: (optional) module dependencies # #### -if(NOT DEFINED FPRIME_USE_STUBBED_DRIVERS OR FPRIME_USE_STUBBED_DRIVERS) +if(FPRIME_USE_STUBBED_DRIVERS) set(SOURCE_FILES "${CMAKE_CURRENT_LIST_DIR}/LinuxGpioDriverComponentAi.xml" "${CMAKE_CURRENT_LIST_DIR}/LinuxGpioDriverComponentImplCommon.cpp" diff --git a/Drv/LinuxI2cDriver/CMakeLists.txt b/Drv/LinuxI2cDriver/CMakeLists.txt index 5a1c061d9a..8d9cc09f93 100644 --- a/Drv/LinuxI2cDriver/CMakeLists.txt +++ b/Drv/LinuxI2cDriver/CMakeLists.txt @@ -5,7 +5,7 @@ # MOD_DEPS: (optional) module dependencies # #### -if(NOT DEFINED FPRIME_USE_STUBBED_DRIVERS OR FPRIME_USE_STUBBED_DRIVERS) +if(FPRIME_USE_STUBBED_DRIVERS) add_definitions(-DSTUBBED_LINUX_I2C_DRIVER) set(SOURCE_FILES "${CMAKE_CURRENT_LIST_DIR}/LinuxI2cDriverComponentAi.xml" diff --git a/Drv/LinuxSpiDriver/CMakeLists.txt b/Drv/LinuxSpiDriver/CMakeLists.txt index f248325c6a..7128a32522 100644 --- a/Drv/LinuxSpiDriver/CMakeLists.txt +++ b/Drv/LinuxSpiDriver/CMakeLists.txt @@ -5,7 +5,7 @@ # MOD_DEPS: (optional) module dependencies # #### -if(NOT DEFINED FPRIME_USE_STUBBED_DRIVERS OR FPRIME_USE_STUBBED_DRIVERS) +if(FPRIME_USE_STUBBED_DRIVERS) set(SOURCE_FILES "${CMAKE_CURRENT_LIST_DIR}/LinuxSpiDriverComponentAi.xml" "${CMAKE_CURRENT_LIST_DIR}/LinuxSpiDriverComponentImplCommon.cpp"