diff --git a/components/partition_table/CMakeLists.txt b/components/partition_table/CMakeLists.txt index da57cbea2b..e4697b27e8 100644 --- a/components/partition_table/CMakeLists.txt +++ b/components/partition_table/CMakeLists.txt @@ -134,7 +134,12 @@ if(${target} STREQUAL "linux" AND EXISTS ${partition_csv}) # target. This is a hack, since that target name is an implementation detail # of the build system. - add_dependencies(__idf_build_target partition-table) + if(IDF_BUILD_V2) + # Build system v2 does not support __idf_build_target target, so add to ALL target. + add_custom_target(partition-table-linux-build ALL DEPENDS partition-table) + else() + add_dependencies(__idf_build_target partition-table) + endif() endif() # Add signing steps