From 7e60df68bd87496e45e018af9727d5825e71ae42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Wed, 31 Jan 2018 17:08:05 +0000 Subject: [PATCH] Do not expose libparted backend on non Linux systems. --- src/plugins/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index c5a982a..58daacd 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -17,11 +17,13 @@ install(FILES pmcorebackendplugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR}) -option(PARTMAN_LIBPARTEDBACKEND "Build the libparted backend plugin." ON) +if(LINUX) + option(PARTMAN_LIBPARTEDBACKEND "Build the libparted backend plugin." ON) -if (PARTMAN_LIBPARTEDBACKEND) - add_subdirectory(libparted) -endif (PARTMAN_LIBPARTEDBACKEND) + if (PARTMAN_LIBPARTEDBACKEND) + add_subdirectory(libparted) + endif (PARTMAN_LIBPARTEDBACKEND) +endif(LINUX) option(PARTMAN_SFDISKBACKEND "Build the sfdisk backend plugin." ON)