On 01/13/2014 09:55 AM, Martin Zenzes wrote:
One little quick follow-on-question. After doing:
set(GENERATED_CPP /path/to/not/yet/created/cpp/file.cpp)
this does not work as expected:
set_property(SOURCE ${GENERATED_CPP} PROPERTY GENERATED)
while this will works as expected:
set_source_files_properties(${GENERATED_CPP} PROPERTIES GENERATED)
bug?
I think neither should work since you are missing a property value but
either
set_property(SOURCE ${GENERATED_CPP} PROPERTY GENERATED ON)
or
set_source_files_properties(${GENERATED_CPP} PROPERTIES GENERATED ON)
should work.
Nils
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake