Skip to content

Commit 8dd4474

Browse files
committed
fix(esp32): Fix cmake file for gprof
In case CONFIG_GPROF_ENABLE is not configured, this error occured: "target_compile_options may only set INTERFACE properties on INTERFACE"
1 parent c09eabf commit 8dd4474

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/gprof/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ idf_component_register(SRCS ${srcs}
1212
REQUIRES "spi_flash" "app_update")
1313

1414
include(package_manager)
15-
cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})
15+
if(CONFIG_GPROF_ENABLE)
16+
cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})
17+
endif()

0 commit comments

Comments
 (0)