[CMake] CMAKE_MFC_FLAG is inherited in subdirectory ?

Micha Renner Micha.Renner at t-online.de
Thu Feb 5 04:59:35 EST 2009


> Hello
> 
> I have one cmakelists in which I do the following :
> set(CMAKE_MFC_FLAG 2)
> 
> 
> 
> In the same cmakelists I am using add_subdirectory to add another
> project ,
> and this makes my added directory with sub_directory to have
> set CMAKE_MFC_FLAG too ,which is not the behaviour I want .
> How to avoid this ?
> Thanks

Unset CMAKE_MFC_FLAG in the CMakeLists.txt of your Subdirectory
SET(CMAKE_MFC_FLAG)


> 
> 
> 
>  
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list