winpr/comm: don't build on apple

Since code is only defined on linux building comm causes /usr/bin/ranlib
to warn about empty objects and the test doesn't build at all on apple.
This commit is contained in:
Bernhard Miklautz 2014-07-23 19:08:30 +02:00
parent 8c318da7b1
commit 352dbd52e2
1 changed files with 17 additions and 15 deletions

View File

@ -18,7 +18,8 @@
set(MODULE_NAME "winpr-comm")
set(MODULE_PREFIX "WINPR_COMM")
set(${MODULE_PREFIX}_SRCS
if(UNIX AND NOT WIN32 AND NOT APPLE)
set(${MODULE_PREFIX}_SRCS
comm.c
comm.h
comm_io.c
@ -31,8 +32,9 @@ set(${MODULE_PREFIX}_SRCS
comm_sercx2_sys.c
comm_sercx2_sys.h)
winpr_module_add(${${MODULE_PREFIX}_SRCS})
winpr_module_add(${${MODULE_PREFIX}_SRCS})
if(BUILD_TESTING AND UNIX AND NOT WIN32)
if(BUILD_TESTING)
add_subdirectory(test)
endif()
endif()