cmake does not define LINUX variable.

This commit is contained in:
Andrius Štikonas 2018-02-04 19:11:25 +00:00
parent 11e435657a
commit aa23fc1168
1 changed files with 8 additions and 12 deletions

View File

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