Skip to content

Commit

Permalink
fix(esp32): Fix cmake file for gprof
Browse files Browse the repository at this point in the history
In case CONFIG_GPROF_ENABLE is not configured, this error occured:
"target_compile_options may only set INTERFACE properties on INTERFACE"
  • Loading branch information
henrywiechert committed Aug 27, 2024
1 parent c09eabf commit 8dd4474
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/gprof/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ idf_component_register(SRCS ${srcs}
REQUIRES "spi_flash" "app_update")

include(package_manager)
cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})
if(CONFIG_GPROF_ENABLE)
cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})
endif()

0 comments on commit 8dd4474

Please sign in to comment.