[CMake] Mfc flag

Philip Lowman philip at yhbt.com
Mon Apr 20 21:53:08 EDT 2009


On Mon, Apr 20, 2009 at 4:28 AM, Denis Scherbakov <
denis_scherbakov at yahoo.com> wrote:

>
> Elizabeta,
>
> In your code snippet everything is ok. CMAKE_MFC_FLAG is 2 after it is set.
> No sooner no later. If you give complete example, which does not work, then
> you'll get an answer.
>
> Did you mean the following?
>
> ADD_SUBDIRECTORY(ProjectA) # MFC_VAR not defined
> SET (MFC_VAR 2)
> ADD_SUBDIRECTORY(ProjectB) # MFC_VAR == 2
>
> I would advise against declaring variables with CMAKE_ prefix, since they
> can interfece with internal CMake variables.


Actually, CMAKE_MFC_FLAG is a special variable:

http://www.vtk.org/Wiki/CMake_FAQ#How_to_use_MFC_with_CMake

-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090420/323f2028/attachment.htm>


More information about the CMake mailing list