CMake tweak

This commit is contained in:
Jonathan Protzenko 2015-08-24 10:49:25 -07:00
parent 63b62e533f
commit 8491b558e0

View file

@ -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}