Hello <br>I have the cmakelists.txt witch define two libraries :<br><br><br>//cmakelists.txt<br><br>add_library(A SHARED ${A_SRC})<br><br>message(${CMAKE_MFC_FLAG}) # prints nothing <br><br>set(CMAKE_MFC_FLAG 2)<br><br>message(${CMAKE_MFC_FLAG}) # prints 2<br>
<br>add_library(B SHARED ${B_SRC})<br><br>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,<br>but the mfc falg is set for project A also .<br>
<br>Is this bug or this is normal behavior ?<br><br>Thanks<br>