Skip to content

Commit

Permalink
Add check for existance of correct compiler to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherjimmy committed Jun 16, 2016
1 parent 6cf5028 commit 2d77367
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions project_generator/templates/cmakelistgccarm.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ set(CMAKE_SYSTEM_PROCESSOR {{core}})
find_program(ARM_NONE_EABI_GCC arm-none-eabi-gcc)
find_program(ARM_NONE_EABI_GPP arm-none-eabi-g++)
find_program(ARM_NONE_EABI_OBJCOPY arm-none-eabi-objcopy)
if (ARM_NONE_EABI_GCC-NOTFOUND OR ARM_NONE_EABI_GPP-NOTFOUND OR ARM_NONE_EABI_OBJCOPY-NOTFOUND)
MESSAGE(FATAL_ERRORO "Could not find the arm-none-eabi gnu toolchain")
endif()

cmake_force_c_compiler("${ARM_NONE_EABI_GCC}" GNU)
cmake_force_cxx_compiler("${ARM_NONE_EABI_GPP}" GNU)
Expand Down

0 comments on commit 2d77367

Please sign in to comment.