Do not expose libparted backend on non Linux systems.

This commit is contained in:
Andrius Štikonas 2018-01-31 17:08:05 +00:00
parent f2b7f2bd9b
commit 7e60df68bd
1 changed files with 6 additions and 4 deletions

View File

@ -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)