Remove the Core/inc folder from the CMake file list

Removed the Core/inc folder from the CMake source file list, otherwise fs_data.c will be compiled and give an error during linking.
This commit is contained in:
L-diy
2023-11-06 15:06:52 +01:00
parent cce5fcfd25
commit b4b54463ef
2 changed files with 6 additions and 2 deletions

View File

@@ -53,7 +53,9 @@ include_directories(LWIP/App LWIP/Target Core/Inc Middlewares/Third_Party/LwIP/s
add_definitions(-DDEBUG -DUSE_HAL_DRIVER -DSTM32F746xx)
file(GLOB_RECURSE SOURCES "Core/*.*" "LWIP/*.*" "Middlewares/*.*" "Drivers/*.*")
#file(GLOB_RECURSE SOURCES "Core/*.*" "LWIP/*.*" "Middlewares/*.*" "Drivers/*.*")
file(GLOB_RECURSE SOURCES "Core/Src/*.*" "Core/Startup/*.*" "LWIP/*.*" "Middlewares/*.*" "Drivers/*.*")
set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/STM32F746NGHX_FLASH.ld)

View File

@@ -52,7 +52,9 @@ include_directories(${includes})
add_definitions(${defines})
file(GLOB_RECURSE SOURCES ${sources})
#file(GLOB_RECURSE SOURCES ${sources})
file(GLOB_RECURSE SOURCES "Core/Src/*.*" "Core/Startup/*.*" "LWIP/*.*" "Middlewares/*.*" "Drivers/*.*")
set(LINKER_SCRIPT $${CMAKE_SOURCE_DIR}/${linkerScript})