queezythegreat / arduino-cmake

Arduino CMake Build system
645 stars 216 forks source link

Fix target_link_libraries in setup_arduino_library() #94

Closed cevich closed 8 years ago

cevich commented 9 years ago

Newer versions of cmake (2.8.12 and later) warn about policy CMP0022 (and CMP0038) regarding self-linking targets. Removing ${LIB_TARGETS} from the inner target_link_libraries() call fixes this.

Signed-off-by: Chris Evich chris-arduino@anonomail.me

JoakimSoderberg commented 8 years ago

There is a better fix for this in #143

cevich commented 8 years ago

good deal, closing this then in favour of #143 then, thanks.