[CMake] CMAKE_MFC_FLAG is inherited in subdirectory ?
Micha.Renner at t-online.de
Thu Feb 5 04:59:35 EST 2009
> 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 ?
Unset CMAKE_MFC_FLAG in the CMakeLists.txt of your Subdirectory
> CMake mailing list
> CMake at cmake.org
More information about the CMake