Skip to content

Commit

Permalink
chore: Allow native Companion compilation on Linux (EdgeTX#4409)
Browse files Browse the repository at this point in the history
  • Loading branch information
3djc authored Dec 12, 2023
1 parent 29cce09 commit 5d30b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions companion/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 5d30b42

Please sign in to comment.