diff --git a/companion/src/CMakeLists.txt b/companion/src/CMakeLists.txt index 7cb6f9242..87fc82415 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")