[CMake] problem with EXPORT_LIBRARY_DEPENDENCIES(... APPEND) ?
Alexander Neundorf
a.neundorf-work at gmx.net
Thu Mar 16 13:23:43 EST 2006
> --- Ursprüngliche Nachricht ---
> Von: Brad King <brad.king at kitware.com>
> An: Alexander Neundorf <a.neundorf-work at gmx.net>
> Kopie: cmake at cmake.org
> Betreff: Re: [CMake] problem with EXPORT_LIBRARY_DEPENDENCIES(...
APPEND)
> ?
> Datum: Thu, 16 Mar 2006 11:22:41 -0500
>
> Alexander Neundorf wrote:
> > Hi,
> >
> > I wanted to add some more information to the file created by
> > EXPORT_LIBRARY_DEPENDENCIES() using the "APPEND" parameter.
> >
> > It seems this doesn't work as expected, testcase attached.
> > The file contains:
> > FILE(WRITE ....)
> > EXPORT_LIBRARY_DEPENDENCIES(... APPEND)
> >
> > The output of EXPORT_LIBRARY_DEPENDENCIES() doesn't appear in the
> > generated file.
> >
> > Did I do something wrong ?
>
> I get this from your test case in LibsDependencies.cmake:
>
> # this file was generated during the build process
> SET(blub_LIB_DEPENDS "z;")
>
> Is that not what you expect?
Strange.
With current cvs I still get:
# this file was generated during the build process
I.e. no output from the export command.
If I exchange the order:
export_library_dependencies(${CMAKE_CURRENT_BINARY_DIR}/LibsDependencies.cmake
)
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/LibsDependencies.cmake "# this
file was generated during the build process\n")
Then the result is:
SET(blub_LIB_DEPENDS "z;")
Hmmm.
And it really works for you ?
Bye
Alex
--
"Feel free" mit GMX FreeMail!
Monat für Monat 10 FreeSMS inklusive! http://www.gmx.net
More information about the CMake
mailing list