Disabled client builds if WITH_CLIENT is not set.
This commit is contained in:
parent
b5288daea5
commit
d4d4271000
@ -19,7 +19,7 @@
|
||||
|
||||
add_subdirectory(common)
|
||||
|
||||
if(FREERDP_VENDOR)
|
||||
if(FREERDP_VENDOR AND WITH_CLIENT)
|
||||
if(WIN32)
|
||||
add_subdirectory(Windows)
|
||||
else()
|
||||
@ -58,11 +58,11 @@ if(FREERDP_VENDOR)
|
||||
endif()
|
||||
|
||||
# Pick up other clients
|
||||
if(WITH_CLIENT)
|
||||
set(FILENAME "ModuleOptions.cmake")
|
||||
file(GLOB FILEPATHS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*/${FILENAME}")
|
||||
|
||||
set(FILENAME "ModuleOptions.cmake")
|
||||
file(GLOB FILEPATHS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*/${FILENAME}")
|
||||
|
||||
foreach(FILEPATH ${FILEPATHS})
|
||||
foreach(FILEPATH ${FILEPATHS})
|
||||
if(${FILEPATH} MATCHES "^([^/]*)/+${FILENAME}")
|
||||
string(REGEX REPLACE "^([^/]*)/+${FILENAME}" "\\1" FREERDP_CLIENT ${FILEPATH})
|
||||
set(FREERDP_CLIENT_ENABLED 0)
|
||||
@ -76,10 +76,10 @@ foreach(FILEPATH ${FILEPATHS})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
endforeach()
|
||||
|
||||
foreach(FREERDP_CLIENT ${FREERDP_EXTRA_CLIENTS})
|
||||
foreach(FREERDP_CLIENT ${FREERDP_EXTRA_CLIENTS})
|
||||
add_subdirectory(${FREERDP_CLIENT})
|
||||
endforeach()
|
||||
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user