CMake: Migrate detection of libtar

This commit is contained in:
Sam Edwards 2018-02-14 17:38:25 -07:00
parent f2e9e25230
commit 5c1ff5fdbc
3 changed files with 8 additions and 13 deletions

View File

@ -491,13 +491,6 @@ option(HAVE_VIDEO4LINUX
"Set this to enable webcam support on Linux." ${IS_LINUX})
# Is libtar installed, and where?
find_package(Tar QUIET)
package_option(TAR
"This is used to optimize patch generation against tar files.")
# TODO: FFTW2
# Is libfftw installed, and where?
#find_package(FFTW2 QUIET)

View File

@ -190,12 +190,6 @@ endif()
# Now go through all the packages and report whether we have them.
show_packages()
if(HAVE_TAR)
message("+ libtar")
else()
message("- Did not find libtar")
endif()
if(HAVE_FFTW)
message("+ fftw")
else()

View File

@ -65,6 +65,14 @@ find_package(TIFF QUIET)
package_option(TIFF "Enable support for loading .tif images.")
config_package(TIFF "libtiff")
#
# ------------ LIBTAR ------------
#
find_package(Tar QUIET)
package_option(TAR
"This is used to optimize patch generation against tar files.")
config_package(TAR "libtar")
# Find and configure Miles Sound System
find_package(Miles QUIET)
#config_package(RAD_MSS "Miles Sound System")