mirror of https://github.com/FreeRDP/FreeRDP
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:
parent
8c318da7b1
commit
352dbd52e2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue