Default proxy modules to OFF
authorArmin Novak <armin.novak@thincast.com>
Mon, 9 Mar 2020 08:14:50 +0000 (09:14 +0100)
committerArmin Novak <armin.novak@thincast.com>
Mon, 9 Mar 2020 08:16:41 +0000 (09:16 +0100)
The proxy module sample is c++ 11 which some older build targets
do not like. Deactivate this by default.

server/CMakeLists.txt
server/proxy/CMakeLists.txt

index 2f6eebc..e91757e 100644 (file)
@@ -20,7 +20,6 @@ include(CMakeDependentOption)
 
 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_MODULES "Compile proxy modules" ON   "WITH_PROXY" OFF)
 
 add_subdirectory(common)
 if (WITH_SHADOW)
index 81979e9..3609f4a 100644 (file)
@@ -17,6 +17,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+include(CMakeDependentOption)
 set(MODULE_NAME "freerdp-proxy")
 set(MODULE_PREFIX "FREERDP_SERVER_PROXY")
 
@@ -88,6 +89,7 @@ endif()
 
 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)
   add_subdirectory("modules")
 endif()