chore: Allow native Companion compilation on Linux (#4409)

This commit is contained in:
3djc
2023-12-13 07:32:22 +10:00
committed by GitHub
parent 29cce09073
commit 5d30b42223
+2 -2
View File
@@ -331,7 +331,7 @@ include(FindDfuutil)
include(FindLibusb1)
include(FindOpenSSL)
if(LINUX)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
message(STATUS "install " ${CMAKE_BINARY_DIR} " to " ${CMAKE_INSTALL_PREFIX})
install(TARGETS ${COMPANION_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
install(TARGETS ${SIMULATOR_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
@@ -561,7 +561,7 @@ if(APPLE)
set(CPACK_PACKAGE_FILE_NAME "edgetx-${CPACK_PACKAGE_NAME_LOWERCASE}-${VERSION}")
endif(APPLE)
if(LINUX)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(LINUXDEPLOY_APPIMAGE "linuxdeploy-x86_64.AppImage")
set(LINUXDEPLOY_PLUGIN_QT "linuxdeploy-plugin-qt-x86_64.AppImage")
set(LINUXDEPLOY_URL "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous")