]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Lib/CMake/arm.cmake
Fixing clang compilation and supporting clang-tidy
[kiibohd-controller.git] / Lib / CMake / arm.cmake
index be04de2afe4eb46d7cc979b71fc5c919d7945020..31fe0cd9ea7b05e105d80149ac4e362f97874f53 100644 (file)
@@ -1,6 +1,6 @@
 ###| CMAKE Kiibohd Controller |###
 #
-# Jacob Alexander 2011-2014
+# Jacob Alexander 2011-2016
 # Due to this file's usefulness:
 #
 # Released into the Public Domain
@@ -111,6 +111,13 @@ set( COMPILER_SRCS
        Lib/delay.c
 )
 
+#| Clang needs a few more functions for linking
+if ( "${COMPILER}" MATCHES "clang" )
+       set( COMPILER_SRCS ${COMPILER_SRCS}
+               Lib/clang.c
+       )
+endif ()
+
 message( STATUS "Compiler Source Files:" )
 message( "${COMPILER_SRCS}" )