-
Notifications
You must be signed in to change notification settings - Fork 104
Closed
Milestone
Description
I use RASC generate a cmake project for RA2E1, in file cmake/GeneratedCfg.cmake line 11.
SET(RASC_CMAKE_EXE_LINKER_FLAGS "-g -O0 -mcpu=cortex-m23 -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -mthumb -T fsp.ld -Xlinker --gc-sections -Wl,-Map,${PROJECT_NAME}.map --specs=nano.specs --specs=rdimon.specs -L ${CMAKE_CURRENT_SOURCE_DIR}/ -L ${CMAKE_CURRENT_SOURCE_DIR}/script -o ${CMAKE_CURRENT_SOURCE_DIR}/build/CMakeFiles/${RASC_PROJECT_NAME}.elf.dir/${RASC_PROJECT_NAME}.elf")
The elf file is hard-coded to write to ${CMAKE_CURRENT_SOURCE_DIR}/build/...., this is not good.
If cmake build directory is build, it is fine. However cmake build directory can be set to anywhere, especially in some IDE, like Clion, which will not use build as the default build directory. In this case, people will not find elf file or face io write error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels