Robert Dailey a écrit :
On Mon, Dec 1, 2008 at 12:25 PM, cyril_wobow <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Robert Dailey a écrit :

        That is indeed how I would expect it to work, but that's not
        what is happening. Below is the actual CMake code I'm using to
        generate projects:

        <snip>

        Inside of another CMakeLists.txt file in a different
        subdirectory, I'll call *library_component( ProjectName )*. Is
        this a bug in CMake or am I just doing this incorrectly? Help
would be appreciated! Thank you.
    I remember an issue (still pending) where the PROJECT() macro
    would have to be invoked from within the root CMakeList file. This
    problem occured to me  while writing my homemade macros and I had
    to work it around by splitting my macro in half and having the
    following in my root CMakeList file :
    MYMACRO1(...)
    PROJECT(xxx)
    MYMACRO2(...)
    .... which is ugly and could really use a fix.


That's going to be obnoxious if that is indeed the case. Was the problem you were experiencing anything like mine?

I did not compare our problems when I read your code, I just realized that you were invoking project() from within a macro. Here is some (old) discussion about it: http://www.cmake.org/pipermail/cmake/2005-February/006082.html

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to