prevent directories from search

Ralf Habacker ralf.habacker at freenet.de
Fri Feb 10 09:58:57 CET 2006


Ralf Habacker schrieb:
> Hi all,
>
> I've encountered a problem with cmake. bzip2 is an optional library and 
> I don't like to use it.
> Because libbz2.dll was installed on my system from another application 
> it was located into a system directory and it was detected. How to 
> prevent this ?
>
>
>
> C:\Daten\kde4\kdelibs>cmake -G "MinGW Makefiles" 
> -DCMAKE_INCLUDE_PATH:STRING=c:/_KDE4/include 
> -DCMAKE_LIBRARY_PATH:STRING=c:/_KDE4/lib
> -- This is a SVN repository
> -- Using Buildname: Win32-mingw32-make
> C:/Qt/4.1.0/lib ---
> -- Found Qt-Version 4.1.0
> -- Building kdelibs...
> -- Found KDE4 include dir: C:/Daten/kde4/kdelibs
> -- Found KDE4 library dir: C:/Daten/kde4/kdelibs/bin
> -- Found KDE4 dcopidl preprocessor: 
> call;C:/Daten/kde4/kdelibs/dcop/dcopidlng/dcopidl.bat
> -- Found KDE4 dcopidl2cpp preprocessor: 
> C:/Daten/kde4/kdelibs/bin/./dcopidl2cpp
> -- Found KDE4 kconfig_compiler preprocessor: 
> C:/Daten/kde4/kdelibs/bin/./kconfig_compiler
> -- Looking for BZ2_bzCompressInit in C:/WINDOWS/SYSTEM32/LIBBZ2.DLL
> -- Looking for BZ2_bzCompressInit in C:/WINDOWS/SYSTEM32/LIBBZ2.DLL - 
> not found
> -- Found BZip2: C:/WINDOWS/SYSTEM32/LIBBZ2.DLL
> -- Found OpenSSL: C:/WINDOWS/SYSTEM32/ssleay32.dll
> -- Found PCRE: c:/_KDE4/lib/libpcre.dll.a;c:/_KDE4/lib/libpcreposix.dll.a
> -- ******** kde-config renamed to kdeconfig for nmake, remove ASAP, it's 
> already fixed in cmake cvs
> -- Found LibXml2: c:/_KDE4/lib/libxml2.dll.a
> -- Found LibXslt: c:/_KDE4/lib/libxslt.dll.a
> -- skipped kab2kabc, two moc files with the same name
> -- Found GIF: c:/_KDE4/lib/libgif.dll.a
> -- C:/Daten/kde4/kdelibs/khtml
> -- C:/Daten/kde4/kdelibs/interfaces/kmediaplayer: skipped subdir 
> $(kfileaudiopreview_subdir)
> -- Configuring done
> -- Generating done
> -- Build files have been written to: C:/Daten/kde4/kdelibs
>
>   
update:

now I have installed bzip2 (and openssl) and provided the related path 
with CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH with the same result. The 
libraries will be taken from the system path.

Additional I have added the CMAKE_..._PATH to 
cmake/modules/FINDBZIP2.cmake to see if this will catch this without 
success.

FIND_PATH(BZIP2_INCLUDE_DIR bzlib.h
    ${CMAKE_INCLUDE_PATH}
  /usr/include
  /usr/local/include
)

FIND_LIBRARY(BZIP2_LIBRARY NAMES bz2 bzip2
  PATHS
    ${CMAKE_LIBRARY_PATH}
  /usr/lib
  /usr/local/lib
)

How to proceed ?
> Ralf
>
> _______________________________________________
> Kde-buildsystem mailing list
> Kde-buildsystem at kde.org
> https://mail.kde.org/mailman/listinfo/kde-buildsystem
>   



More information about the Kde-buildsystem mailing list