[CMake] Mfc flag

elizabeta petreska elizabeta.petreska at gmail.com
Fri Apr 17 16:57:30 EDT 2009


sorry for the repost, I'm still stuck with this

Can someone explain this behavior? I'm sure I'm missing something essential

On Fri, Apr 17, 2009 at 11:48 AM, elizabeta petreska <
elizabeta.petreska at gmail.com> wrote:

> Hello
> I have the cmakelists.txt witch define two libraries :
>
>
> //cmakelists.txt
>
> add_library(A SHARED ${A_SRC})
>
> message(${CMAKE_MFC_FLAG}) # prints nothing
>
> set(CMAKE_MFC_FLAG 2)
>
> message(${CMAKE_MFC_FLAG}) # prints 2
>
> add_library(B SHARED ${B_SRC})
>
> I was expecting CMAKE_MFC _FLAG to be set just for project B , and not for
> project A because of the order of processing in the cmakelists.txt,
> but the mfc falg is set for project A also .
>
> Is this bug or this is normal behavior ?
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090417/fcb3bf2e/attachment.htm>


More information about the CMake mailing list