On 12/08/2015 12:06 PM, Dr. Sören Textor wrote:
Taking a look at the CMakeCache.txt offers the missing
     ${target_name}_GUID_CMAKE
variable.
Thus
   set_property(CACHE ${target_name}_GUID_CMAKE PROPERTY VALUE ${MY_GUID} )
seems to work.

But how do I get the actual GUID set by CMake? This one was stored in 
CMakeCache.txt before. But right know I cannot find the GUID from a generated 
project file in any ccmake chache file.
How do I gain the GUID created by CMake. In my project I just store the new 
GUIDs created by CMake in a file. Next time I build the project file I'm 
looking if a GUID  was already generated for that project an will use that one.


See https://cmake.org/gitweb?p=cmake.git;a=commit;h=c85367f4
I don't think cmake exposes the GUID that it uses anymore but you should still be able to provide your own.

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://public.kitware.com/mailman/listinfo/cmake

Reply via email to