Skip to content

Commit

Permalink
Use static library for automatic compiler detection
Browse files Browse the repository at this point in the history
There has been a long standing bug with cmake that does not
allow it to properly detect embedded compilers (we have to
call "generate_makefile" twice because of this bug).

With CMake 3.6 we can finally tell CMake to use static libs
for the detection to circumvent the problem!
  • Loading branch information
borg42 committed Aug 15, 2017
1 parent 12689b8 commit 93b1714
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toolchains/arm-none-eabi.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SET(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)

# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Generic)

Expand Down

0 comments on commit 93b1714

Please sign in to comment.