client: disable the client interface per default
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Mon, 9 May 2016 08:25:31 +0000 (10:25 +0200)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Mon, 9 May 2016 10:20:38 +0000 (12:20 +0200)
libxfreerdp-client doesn't necessarily provide a stable interface
therefore it isn't built and installed anymore per default.

To archive the same behavior as before this change -
libxfreerdp-client.so built and a library version set - use
-DWITH_CLIENT_INTERFACE=ON -DCLIENT_INTERFACE_SHARED=ON
when running cmake.

This also fixes the build on windows without WITH_CLIENT_INTERFACE
enabled.

client/Windows/CMakeLists.txt
cmake/ConfigOptions.cmake

index aab5cec..0df9fd7 100644 (file)
@@ -72,6 +72,7 @@ if(WITH_CLIENT_INTERFACE)
 else()
        set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} cli/wfreerdp.c cli/wfreerdp.h)
        add_executable(${MODULE_NAME} WIN32 ${${MODULE_PREFIX}_SRCS})
+       include_directories(${CMAKE_CURRENT_SOURCE_DIR})
 endif()
 
 set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp-client)
index 8f18b9c..67f5bcf 100644 (file)
@@ -81,7 +81,7 @@ endif()
 
 option(WITH_THIRD_PARTY "Build third-party components" OFF)
 
-option(WITH_CLIENT_INTERFACE "Build clients as a library with an interface" ON)
+option(WITH_CLIENT_INTERFACE "Build clients as a library with an interface" OFF)
 option(WITH_SERVER_INTERFACE "Build servers as a library with an interface" ON)
 
 option(WITH_DEBUG_ALL "Print all debug messages." OFF)