diff --git a/libfreerdp/CMakeLists.txt b/libfreerdp/CMakeLists.txt index a47c77cb7..dcbd0c36f 100644 --- a/libfreerdp/CMakeLists.txt +++ b/libfreerdp/CMakeLists.txt @@ -15,6 +15,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +if(WITH_MONOLITHIC_BUILD) + set(CMAKE_POSITION_INDEPENDENT_CODE ON) +endif() + add_subdirectory(utils) add_subdirectory(gdi) add_subdirectory(rail) @@ -25,4 +29,15 @@ add_subdirectory(channels) add_subdirectory(locale) add_subdirectory(core) - +if(WITH_MONOLITHIC_BUILD) + add_library(freerdp + $ + $ + $ + $ + $ + $ + $ + $ + $) +endif()