Skip to content

Commit 5702a49

Browse files
committed
Remove STREQU from cmake.
1 parent 35a2b9a commit 5702a49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_app/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ endif()
1414

1515
# 2.1. Add here if the component is compatible with IDF == v4.3
1616
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_EQUAL "4.3")
17-
if((${IDF_TARGET} STREQUAL "esp32") OR (${IDF_TARGET} STREQUAL "esp32s2") OR (${IDF_TARGET} STREQUAL "esp32s3"))
17+
if(NOT ((${IDF_TARGET} MATCHES "esp32c3") OR (${IDF_TARGET} MATCHES "esp32c2")))
1818
list(APPEND EXTRA_COMPONENT_DIRS ../opencv)
1919
endif()
2020
endif()
2121

2222
# 2.2. Add here if the component is compatible with IDF == v4.4
2323
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_EQUAL "4.4")
24-
if((${IDF_TARGET} STREQUAL "esp32") OR (${IDF_TARGET} STREQUAL "esp32s2") OR (${IDF_TARGET} STREQUAL "esp32s3"))
24+
if(NOT ((${IDF_TARGET} MATCHES "esp32c3") OR (${IDF_TARGET} MATCHES "esp32c2")))
2525
list(APPEND EXTRA_COMPONENT_DIRS ../opencv)
2626
endif()
2727
endif()

0 commit comments

Comments
 (0)