Am Freitag 12 März 2010 schrieb Kornel Benko:
> Am Freitag 12 März 2010 schrieb BH:
> > I can't get cmake to recognize my enchant installation at /opt/local/.
> > What cmake variable am I not setting correctly?
> >
> > BH
> 
> To compile, you need the development package. We are searching for include
>  files _and_ for libraries. (So e.g. for ubuntu this is: libenchant-dev +
>  libenchant1c2a)
> 
>       Kornel
> 

Read again, I see the "unusual" path, therefore you have to patch the 
CMakeLists.txt.

In trunk, look at line 228:
        ...
        find_library(ENCHANT_LIBRARY "enchant"  "/usr/local/lib" "/usr/lib")
        ....
Here you may provide your path like this:
        find_library(ENCHANT_LIBRARY "enchant"  "/usr/local/lib" "/usr/lib" 
"/opt/local/lib")

Appropriate change also to find the include (provided it is 
"/opt/local/enchant")
        find_path(ENCHANT_INCLUDE_DIR "enchant++.h" PATHS /usr/local/include 
/usr/local/include/enchant /usr/include /usr/include/enchant /opt/local/enchant)

...
        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to