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

Robert Dailey rcdailey at gmail.com
Tue Nov 25 14:39:02 EST 2008


I'm having an issue right now where I'm trying to setup 2 projects in 1
CMakeLists.txt file. Basically what I do is:

project( p1 )
add_executable()

project( p2 )
source_group()
add_library()

For project p1, the visual studio project that is output (p1.vcproj)
contains filters created by the source_group() call several lines below it.
Why does this happen? Only p2 should be affected by source_group() correct?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081125/7cf08a29/attachment.htm>


More information about the CMake mailing list