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,6 +18,7 @@
set(MODULE_NAME "winpr-comm")
set(MODULE_PREFIX "WINPR_COMM")
if(UNIX AND NOT WIN32 AND NOT APPLE)
set(${MODULE_PREFIX}_SRCS
comm.c
comm.h
@ -33,6 +34,7 @@ set(${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()