Quoting Pierre Malarme <[EMAIL PROTECTED]>:
I have a problem using Xerces-C++ with cmake. I'm on Mac OS X 10.4.8
with an Intel Core 2 Duo. I try to compile a parser.cpp file with
nothing more that includes that i need. When i do so, i have this
error message in return :
[...]
My FindXerces.cmake file is :
#SET THE ROOT DIRECTORY WHERE XERCES-C++ IS INSTALLED
SET(XERCES_ROOT_DIR /Developer/CPP/xerces-c-src_2_7_0)
#DO NOT CHANGE
SET(XERCES_LIBRARY_DIR ${XERCES_ROOT_DIR}/lib)
SET(XERCES_INCLUDE_DIR ${XERCES_ROOT_DIR}/include)
SET(XERCES_LINK_FLAGS -L${XERCES_LIBRARY_DIR})
SET(XERCES_INC_FLAGS -I${XERCES_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${XERCES_INCLUDE_DIR})
LINK_DIRECTORIES(${XERCES_LIBRARY_DIR})
LINK_LIBRARIES(${XERCES_LINK_FLAGS})
ADD_DEFINITIONS(${XERCES_INC_FLAGS})
You clearly forgot to add the "-lxerces-c" option to the XERCES_LINK_FLAGS.
If you want to see the command that is executed, use:
make VERBOSE=1
Peter
--
www.fmtc.be
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake