Refactored the inclusion of the headers in the ADD_LIBRARY so that they aren't

added under OSX.
This commit is contained in:
Robert Osfield
2008-04-23 20:50:53 +00:00
parent 77b98eb5f8
commit 8ae30c9bfc
14 changed files with 101 additions and 15 deletions

View File

@@ -8,9 +8,16 @@ INCLUDE (CheckCXXSourceCompiles)
SET(LIB_NAME OpenThreads)
SET(LIB_PUBLIC_HEADERS ${OpenThreads_PUBLIC_HEADERS})
IF(APPLE)
SET(ADD_LIBRARY_HEADERS "")
ELSEIF(APPLE)
SET(ADD_LIBRARY_HEADERS ${LIB_PUBLIC_HEADERS} )
ENDIF(APPLE)
# FIXME: For OS X, need flag for Framework or dylib
ADD_LIBRARY(${LIB_NAME}
${OPENTHREADS_USER_DEFINED_DYNAMIC_OR_STATIC}
${LIB_PUBLIC_HEADERS}
${ADD_LIBRARY_HEADERS}
PThread.c++
PThreadBarrier.c++
PThreadBarrierPrivateData.h