Am 22.01.2011 um 19:54 schrieb Peter Kümmel: > On 22.01.2011 17:50, Stephan Witt wrote: >> Am 22.01.2011 um 16:54 schrieb Peter Kümmel: >> >>> On 22.01.2011 16:46, Stephan Witt wrote: >>>> Peter, >>>> >>>> is it possible to add extra library/include file search paths? >>>> >>>> If I want to debug the aspell/hunspell I have to use my private builds on >>>> Mac. >>>> >>>> I want to pass it as options from command line, otherwise I have to change >>>> the >>>> e. g. FindASPELL.cmake to build with aspell support. >>>> >>> >>> Are your changes so specific to your setup that they could not get upstream? >> >> I think so, it's a build directory below a sibling of the lyx checkout. >> But how should it look like to be acceptable for getting upstream? >> May I set an optional variable as path prefix and add it? >> >> Currently we have: >> /usr/include >> /usr/local/include >> /usr/local/include/aspell >> ${_program_FILES_DIR}/gnuwin32/include >> >> perhaps >> >> += >> ${PRIVATE_BUILD_DIR}/include >> >> Stephan > > Or attached patch? > > cmake . -DLYX_ADD_INCLUDES=/x/y/z;/a/b/c
Sorry, I didn't have any time until now... I tried it and had no luck. But I found another approach, I call cmake with the results I want to get: ... -DASPELL_INCLUDE_DIR=/Users/stephan/cvs/lyx/lyx-build/SpellCheckers/include\ -DASPELL_LIBRARY_RELEASE=/Users/stephan/cvs/lyx/lyx-build/SpellCheckers/lib/libaspell.dylib\ -DHUNSPELL_INCLUDE_DIR=/Users/stephan/cvs/lyx/lyx-build/SpellCheckers/include\ -DHUNSPELL_LIBRARY=/Users/stephan/cvs/lyx/lyx-build/SpellCheckers/lib/libhunspell.dylib\ ... That way it works without touching the cmake modules files. Stephan