From 5d30b42223838b898048c3c10622413921ca1ed8 Mon Sep 17 00:00:00 2001 From: 3djc Date: Tue, 12 Dec 2023 22:32:22 +0100 Subject: [PATCH] chore: Allow native Companion compilation on Linux (#4409) --- companion/src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/companion/src/CMakeLists.txt b/companion/src/CMakeLists.txt index 7cb6f9242a8..87fc8241567 100644 --- a/companion/src/CMakeLists.txt +++ b/companion/src/CMakeLists.txt @@ -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")