mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 18:03:30 +08:00
cmake: fix Mac OS X compilation
This commit is contained in:
parent
f8fa387fae
commit
a35f1e81cb
@ -63,6 +63,12 @@ include_directories(${CMAKE_SOURCE_DIR}/include)
|
||||
# Configure files
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
||||
|
||||
# Mac OS X
|
||||
if(APPLE)
|
||||
include_directories(/opt/local/include)
|
||||
link_directories(/opt/local/lib)
|
||||
endif()
|
||||
|
||||
# Build CUnit
|
||||
find_package(CUnit)
|
||||
if(CUNIT_FOUND)
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <CUnit/Basic.h>
|
||||
#include <CUnit/CUnit.h>
|
||||
#include <freerdp/types/base.h>
|
||||
#include <freerdp/utils/stream.h>
|
||||
#include <freerdp/utils/hexdump.h>
|
||||
|
@ -49,5 +49,6 @@ set(LIBFREERDP_CORE_SRCS
|
||||
add_library(freerdp-core SHARED ${LIBFREERDP_CORE_SRCS})
|
||||
|
||||
target_link_libraries(freerdp-core ssl)
|
||||
target_link_libraries(freerdp-core freerdp-utils)
|
||||
|
||||
install(TARGETS freerdp-core DESTINATION lib)
|
||||
|
@ -32,6 +32,10 @@
|
||||
#include "tpkt.h"
|
||||
#include "transport.h"
|
||||
|
||||
#ifndef MSG_NOSIGNAL
|
||||
#define MSG_NOSIGNAL 0
|
||||
#endif
|
||||
|
||||
#define BUFFER_SIZE 16384
|
||||
|
||||
boolean
|
||||
|
Loading…
Reference in New Issue
Block a user