Default proxy modules to OFF

The proxy module sample is c++ 11 which some older build targets
do not like. Deactivate this by default.
This commit is contained in:
Armin Novak 2020-03-09 09:14:50 +01:00
parent a6d0b67ca6
commit cffbbacccd
2 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,6 @@ include(CMakeDependentOption)
CMAKE_DEPENDENT_OPTION(WITH_SHADOW "Compile with shadow server" ON "WITH_SERVER" OFF) CMAKE_DEPENDENT_OPTION(WITH_SHADOW "Compile with shadow server" ON "WITH_SERVER" OFF)
CMAKE_DEPENDENT_OPTION(WITH_PROXY "Compile with proxy server" ON "WITH_SERVER" OFF) CMAKE_DEPENDENT_OPTION(WITH_PROXY "Compile with proxy server" ON "WITH_SERVER" OFF)
CMAKE_DEPENDENT_OPTION(WITH_PROXY_MODULES "Compile proxy modules" ON "WITH_PROXY" OFF)
add_subdirectory(common) add_subdirectory(common)
if (WITH_SHADOW) if (WITH_SHADOW)

View File

@ -17,6 +17,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
include(CMakeDependentOption)
set(MODULE_NAME "freerdp-proxy") set(MODULE_NAME "freerdp-proxy")
set(MODULE_PREFIX "FREERDP_SERVER_PROXY") set(MODULE_PREFIX "FREERDP_SERVER_PROXY")
@ -88,6 +89,7 @@ endif()
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Server/proxy") set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Server/proxy")
CMAKE_DEPENDENT_OPTION(WITH_PROXY_MODULES "Compile proxy modules" OFF "WITH_PROXY" OFF)
if (WITH_PROXY_MODULES) if (WITH_PROXY_MODULES)
add_subdirectory("modules") add_subdirectory("modules")
endif() endif()