CMake erroradd_library command is not scriptable Once the project is opened via the IDE, CMake will throw the following error: This error is in the exporteduidirectory's CMakeLists.txt file Replace theadd_library(ui ${SOURCES})line with the following: ...
If I register the component at the end, per the above, I get an `add_custom_command Wrong syntax. TARGET or OUTPUT must be specified` error. And if I don't add the "if(NOT CMAKE_BUILD_EARLY_EXPANSION)" condition I get a "add_custom_command is not scriptable" error.Regards...
CMake error add_library command is not scriptableOnce the project is opened via the IDE, CMake will throw the following error: This error is in the exported ui directory's CMakeLists.txt file Replace the add_library(ui ${SOURCES}) line with the following: idf_component_register(SRCS...