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:
@@ -53,7 +53,9 @@ include_directories(LWIP/App LWIP/Target Core/Inc Middlewares/Third_Party/LwIP/s
|
|||||||
|
|
||||||
add_definitions(-DDEBUG -DUSE_HAL_DRIVER -DSTM32F746xx)
|
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)
|
set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/STM32F746NGHX_FLASH.ld)
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,9 @@ include_directories(${includes})
|
|||||||
|
|
||||||
add_definitions(${defines})
|
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})
|
set(LINKER_SCRIPT $${CMAKE_SOURCE_DIR}/${linkerScript})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user