cmake: Add CMake option to disable building plugins

Closes jp9000/obs-studio#1070
This commit is contained in:
Ryan Foster 2017-11-08 22:31:28 -05:00 committed by jp9000
parent 573fbbfead
commit 54ecfc8fe7

View File

@ -1,3 +1,8 @@
option(DISABLE_PLUGINS "Disable building of OBS plugins" OFF)
if(DISABLE_PLUGINS)
message(STATUS "DISABLE_PLUGINS is set; building of plugins is disabled.")
return()
endif()
if(WIN32)
option(BUILD_CA_ENCODER "Build CoreAudio encoder module" ON)