[CMake] Linking against OS X Frameworks
ML
mailinglists at MailNewsRSS.com
Thu Aug 6 15:41:27 EDT 2009
HI All,
I am continuing my learning curve.
Consider this block:
if (APPLE)
SET(MOREFILESX_HEADERS
source/thirdparty/OSX/MoreFilesX/MoreFilesX.h
)
SET(MOREFILESX_SOURCES
source/thirdparty/OSX/MoreFilesX/MoreFilesX.c
)
FIND_LIBRARY (CARBON_LIBRARY Carbon)
MARK_AS_ADVANCED (CARBON_LIBRARY)
SET (EXTRA_LIBS ${CARBON_LIBRARY})
ADD_LIBRARY (MoreFilesX ${MOREFILESX_SOURCES} ${MOREFILESX_HEADERS})
TARGET_LINK_LIBRARIES (MoreFilesX ${EXTRA_LIBS} )
ENDIF (APPLE)
I am trying to link against the Carbon Framework. I know it is not
working because I am getting errors like:
/Volumes/Data/jtsm/Checkout/Universal GUI/source/thirdparty/OSX/
MoreFilesX/MoreFilesX.c: In function ‘FSGetVolParms’:
/Volumes/Data/jtsm/Checkout/Universal GUI/source/thirdparty/OSX/
MoreFilesX/MoreFilesX.c:231: error: ‘HParamBlockRec’ undeclared (first
use in this function)
What am I doing wrong above?
Best,
-Jason
More information about the CMake
mailing list