CMake tweak

master
Jonathan Protzenko 7 years ago
parent 63b62e533f
commit 8491b558e0
  1. 13
      source/CMakeLists.txt

@ -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…
Cancel
Save