CMake tweak
This commit is contained in:
parent
63b62e533f
commit
8491b558e0
1 changed files with 6 additions and 7 deletions
|
@ -30,15 +30,14 @@ set(YOTTA_AUTO_MICROBIT-DAL_CPP_FILES
|
|||
)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
set(YOTTA_AUTO_MICROBIT-DAL_S_FILES
|
||||
"CortexContextSwitch.s.gcc"
|
||||
)
|
||||
else()
|
||||
set(YOTTA_AUTO_MICROBIT-DAL_S_FILES
|
||||
"CortexContextSwitch.s"
|
||||
)
|
||||
file(REMOVE "CortexContextSwitch.s")
|
||||
file(RENAME "CortexContextSwitch.s.gcc" "CortexContextSwitch.s")
|
||||
endif()
|
||||
|
||||
set(YOTTA_AUTO_MICROBIT-DAL_S_FILES
|
||||
"CortexContextSwitch.s"
|
||||
)
|
||||
|
||||
add_library(microbit-dal
|
||||
${YOTTA_AUTO_MICROBIT-DAL_CPP_FILES}
|
||||
${YOTTA_AUTO_MICROBIT-DAL_S_FILES}
|
||||
|
|
Loading…
Reference in a new issue