Use option to let user choose to use system's KLT

This commit is contained in:
Mattia Verga
2017-06-05 17:59:36 +02:00
parent 094678885c
commit 6b81411561
2 changed files with 5 additions and 2 deletions

View File

@@ -256,7 +256,10 @@ find_package (JPEG REQUIRED)
find_package (PNG REQUIRED)
find_package (TIFF REQUIRED)
find_package (ZLIB REQUIRED)
find_package (KLT)
option(USE_SYSTEM_KLT "Enable this option here or in cmake call if you want to use system's KLT libraries." OFF)
if (USE_SYSTEM_KLT)
find_package (KLT REQUIRED)
endif(USE_SYSTEM_KLT)
# link witz bzip
if (WITH_BZIP)