> Well at first glance it seemed to work, but in fact it is > not : A is still built before B, and fails to build missing > B.h. > > Please note that this only occurs on visual studio.
Try to set B.h source file properties as GENERATED and include it into A_SRCS. Maybe this help. Could you provide your CMakeLists.txt? _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake