[CMake] providing library information, what's the cmake way
Rolf Eike Beer
eike at sf-mail.de
Wed Nov 24 06:57:17 EST 2010
> In KDE we have a macro MACRO_WRITE_BASIC_CMAKE_VERSION_FILE() which helps
> with
> creating a basic version-info file which should be installed along with
> the
> Config-file.
> It consists of MacroWriteBasicCMakeVersionFile.cmake and
> BasicFindPackageVersion.cmake.in which you can find in
> http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/ .
I wonder why you use
get_filename_component(_currentListFileDir ${CMAKE_CURRENT_LIST_FILE} PATH)
in there instead of CMAKE_CURRENT_LIST_DIR.
Eike
More information about the CMake
mailing list