Skip to content

Commit ca4bd3d

Browse files
committed
Update FindSystem.Device.Adc.cmake
1 parent 5e29545 commit ca4bd3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMake/Modules/FindSystem.Device.Adc.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ list(APPEND System.Device.Adc_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/src/System.Device
1717

1818
# source files
1919
# ESP32 uses legacy ADC driver for now as there is a dependency to legacy I2S due to internal DAC on ESP32
20-
if(TARGET_SERIES_SHORT AND ${TARGET_SERIES_SHORT} STREQUAL "esp32")
20+
if(DEFINED TARGET_SERIES_SHORT AND ${TARGET_SERIES_SHORT} STREQUAL "esp32")
2121
set(System.Device.Adc_SRCS
2222

2323
sys_dev_adc_native.cpp

0 commit comments

Comments
 (0)