[CMake] source_group(): Which project is it added to?

Robert Dailey rcdailey at gmail.com
Mon Dec 1 14:48:29 EST 2008


On Mon, Dec 1, 2008 at 12:25 PM, cyril_wobow <cyril at wobow.com> 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081201/fc212f42/attachment.htm>


More information about the CMake mailing list