From 4170215ab077fbab6d9ce18f539b8d276f6aafe4 Mon Sep 17 00:00:00 2001 From: ktbolt Date: Mon, 30 Sep 2024 16:45:12 -0700 Subject: [PATCH] Fix detecting Linux os. --- distribution/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/distribution/CMakeLists.txt b/distribution/CMakeLists.txt index c8ec7e77..6f85beb9 100644 --- a/distribution/CMakeLists.txt +++ b/distribution/CMakeLists.txt @@ -25,10 +25,12 @@ if(ENABLE_DISTRIBUTION) if(APPLE) set(CPACK_GENERATOR "productbuild") - elseif(LINUX) + endif() + + if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") set(CPACK_GENERATOR DEB) set(CPACK_DEBIAN_PACKAGE_DEPENDS "") - endif(APPLE) + endif() # create the installer for both solver and calibrator install(TARGETS svzerodsolver svzerodcalibrator