diff --git a/CMakeLists.txt b/CMakeLists.txt index 12bb534ee..e5b56abcc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,9 @@ endif() # Global project options option(ENABLE_HEVC "Enable HEVC encoders" OFF) +if(ENABLE_HEVC) + add_compile_definitions(ENABLE_HEVC) +endif() option(BUILD_FOR_DISTRIBUTION "Build for distribution (enables optimisations)" OFF) option(ENABLE_UI "Enable building with UI (requires Qt)" ON)