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

Commit 58d129a

Browse files
committed
Fixed bug where 'detect_linux_distribution' function wasn't recognized as a valid function due to mis-included module.
1 parent 6bc9ddc commit 58d129a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cmake/Platform/Other/FindArduinoSDK.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
include(${CMAKE_CURRENT_LIST_DIR}/../System/LinuxDistDetector.cmake)
2+
13
function(find_arduino_sdk _return_var)
24

35
if (${CMAKE_HOST_UNIX})

cmake/Platform/System/BuildSystemInitializer.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
include(AvrToolsFinder)
22
include(VersionDetector)
3-
include(LinuxDistDetector)
43
include(PlatformInitializer)
54

65
function(find_required_platform_tools)

cmake/Platform/System/LinuxDistDetector.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function(detect_host_linux_distribution)
22

33
if (NOT ${CMAKE_HOST_UNIX})
44
message(AUTHOR_WARNING "Linux distribution detection called on non-Unix platform")
5-
elseif (${CMAKE_HOST_UNIX} AND ${CMAKE_HOST_APPLE})
5+
elseif (${CMAKE_HOST_APPLE})
66
message(AUTHOR_WARNING "Linux distribution detection called on Apple platform")
77
else () # Linux host
88
find_program(lsb_release_exec lsb_release)

0 commit comments

Comments
 (0)