mkleemann / cmake-avr

cmake toolchain for AVR
Other
174 stars 61 forks source link

Bypass Linking for CMake Compiler Test #23

Closed AE1020 closed 3 years ago

AE1020 commented 3 years ago

Some generators throw in a try_compile() sanity check that will fail trying to link and run an exe on the host platform since this is a cross-compiler. This behavior was seen on Windows.

Since linking and running won't work with this toolchain on the host, change the CMAKE_TRY_COMPILE_TARGET_TYPE to "STATIC_LIBRARY".