Disabled client builds if WITH_CLIENT is not set.

This commit is contained in:
Armin Novak 2015-11-03 16:16:49 +01:00
parent b5288daea5
commit d4d4271000

View File

@ -19,7 +19,7 @@
add_subdirectory(common)
if(FREERDP_VENDOR)
if(FREERDP_VENDOR AND WITH_CLIENT)
if(WIN32)
add_subdirectory(Windows)
else()
@ -58,7 +58,7 @@ if(FREERDP_VENDOR)
endif()
# Pick up other clients
if(WITH_CLIENT)
set(FILENAME "ModuleOptions.cmake")
file(GLOB FILEPATHS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*/${FILENAME}")
@ -81,5 +81,5 @@ endforeach()
foreach(FREERDP_CLIENT ${FREERDP_EXTRA_CLIENTS})
add_subdirectory(${FREERDP_CLIENT})
endforeach()
endif()