okular/OkularConfigureChecks.cmake
Albert Astals Cid 95bc29a76f Force release of free memory
This should not be needed, but i can totally reproduce that without it
top is still reporting lots of memory used by Okular when it's really
not (heaptrack reports memory freed correctly)

BUGS: 394834
2018-05-30 10:55:17 +02:00

23 lines
554 B
CMake

option(
OKULAR_FORCE_DRM
"Forces okular to check for DRM to decide if you can copy/print protected pdf. (default=no)"
OFF
)
if (OKULAR_FORCE_DRM)
set(_OKULAR_FORCE_DRM 1)
else (OKULAR_FORCE_DRM)
set(_OKULAR_FORCE_DRM 0)
endif (OKULAR_FORCE_DRM)
# Check whether malloc_trim(3) is supported.
include(CheckSymbolExists)
check_symbol_exists(malloc_trim "malloc.h" HAVE_MALLOC_TRIM)
# at the end, output the configuration
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/config-okular.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-okular.h
)