Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 3dbc53f

Browse files
authored
Merge pull request #63 from arduino-cmake/feature/ubuntu-sources-regression
Fixed regression bug regarding ubuntu-debian systems
2 parents c78cecf + 888a4b6 commit 3dbc53f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cmake/Platform/Targets/CoreLibTarget.cmake

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,17 @@ function(add_arduino_core_lib _target_name _board_id)
9494

9595
# Find sources in core directory and add the library target
9696
find_source_files("${ARDUINO_CMAKE_CORE_${board_core}_PATH}" core_sources)
97+
9798
if (${CMAKE_HOST_UNIX})
99+
98100
if (CMAKE_HOST_UBUNTU OR CMAKE_HOST_DEBIAN)
99-
set(core_sources_temp_copy ${core_sources})
100-
list(FILTER core_sources_temp_copy INCLUDE REGEX "[Mm]ain\\.c.*")
101-
message("Temp Copy: ${core_sources_temp_copy}")
101+
102+
list(FILTER core_sources EXCLUDE REGEX "[Mm]ain\\.c.*")
103+
102104
endif ()
105+
103106
endif ()
107+
104108
add_library(${core_lib_target} STATIC "${core_sources}")
105109

106110
# Include platform's core and variant directories

0 commit comments

Comments
 (0)