Skip to content

Commit

Permalink
filter out non c source files
Browse files Browse the repository at this point in the history
  • Loading branch information
goatshriek committed Sep 24, 2023
1 parent 69d35ec commit fd0d95f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -717,11 +717,13 @@ set(SINGLE_SOURCE_FILE "${PROJECT_BINARY_DIR}/stumpless.c")
file(WRITE "${SINGLE_SOURCE_FILE}" "")
set(include_list "")
foreach(source_file ${STUMPLESS_SOURCES})
include_file(
"${SINGLE_SOURCE_FILE}"
"${source_file}"
include_list
)
if("${source_file}" MATCHES "\\.c$")
include_file(
"${SINGLE_SOURCE_FILE}"
"${source_file}"
include_list
)
endif()
endforeach()


Expand Down

0 comments on commit fd0d95f

Please sign in to comment.