From aa23fc11684f99f3c36066bbaeaa37bb42323c1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 4 Feb 2018 19:11:25 +0000 Subject: [PATCH] cmake does not define LINUX variable. --- src/plugins/CMakeLists.txt | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 651b722..1311ebb 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -17,21 +17,17 @@ install(FILES pmcorebackendplugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR}) -#if(LINUX) -# option(PARTMAN_LIBPARTEDBACKEND "Build the libparted backend plugin." ON) +#option(PARTMAN_LIBPARTEDBACKEND "Build the libparted backend plugin." ON) -# if (PARTMAN_LIBPARTEDBACKEND) -# add_subdirectory(libparted) -# endif (PARTMAN_LIBPARTEDBACKEND) -#endif(LINUX) +#if (PARTMAN_LIBPARTEDBACKEND) +# add_subdirectory(libparted) +#endif (PARTMAN_LIBPARTEDBACKEND) -if(LINUX) - option(PARTMAN_SFDISKBACKEND "Build the sfdisk backend plugin." ON) +option(PARTMAN_SFDISKBACKEND "Build the sfdisk backend plugin." ON) - if (PARTMAN_SFDISKBACKEND) - add_subdirectory(sfdisk) - endif (PARTMAN_SFDISKBACKEND) -endif(LINUX) +if (PARTMAN_SFDISKBACKEND) + add_subdirectory(sfdisk) +endif (PARTMAN_SFDISKBACKEND) option(PARTMAN_DUMMYBACKEND "Build the dummy backend plugin." ON)