summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2020-03-21 14:44:34 -0600
committerGitHub <noreply@github.com>2020-03-21 14:44:34 -0600
commit490b5b66afc5f496287fb2db7634643ea2e17db1 (patch)
treef0ddd919c1cce2a4bdb51d5bf74264acbbebaa9b /cmake
parent70fa05c6e474997ba537adb556b44c221581b4df (diff)
downloadbcm5719-ortega-490b5b66afc5f496287fb2db7634643ea2e17db1.tar.gz
bcm5719-ortega-490b5b66afc5f496287fb2db7634643ea2e17db1.zip
clang-format: Enable additional projects and re-format. (#61)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/clang-format.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/clang-format.cmake b/cmake/clang-format.cmake
index d92b3fd..2036e03 100644
--- a/cmake/clang-format.cmake
+++ b/cmake/clang-format.cmake
@@ -70,8 +70,11 @@ else()
set(paths )
get_target_property(sources ${target} SOURCES)
foreach(source ${sources})
- get_source_file_property(path ${source} LOCATION)
- LIST(APPEND paths ${path})
+ get_source_file_property(type ${source} LANGUAGE)
+ IF("${type}" STREQUAL "C" OR "${type}" STREQUAL "CXX")
+ get_source_file_property(path ${source} LOCATION)
+ LIST(APPEND paths ${path})
+ ENDIF()
endforeach()
format_sources(${paths})
OpenPOWER on IntegriCloud