c++ - Get property returns empty variable when try to get Target Link Libraries information -


I have some debug info in the seamkey, to see if I have any necessary information to compile a project Not raised. This code works in the code:

  Include # directory GET_PROPERTY (dirs DIRECTORY $ {CMAKE_CURRENT_SOURCE_DIR} property INCLUDE_DIRECTORIES) foreach (dir $ {dirs}) Message (status "* Include directory: '$ {Dir}' ") ENDFOREACH ()   

But when I try to check all the libraries connected to the current project, I get an empty variable:

  # linking foreach (libtarget $ {libtargets}) Message (Status "* Target Link Library: '$ {libtarget}'") ENDFOREACH (: GET_PROPERTY ($ libsLTD $ {CMAKE_CURRENT_SOURCE_DIR} Leaf LINK_LIBRARIES) against message ("$ {libtargets} Libs")   

It looks properly, but I do not know which value is available to read. I print the information after creating ADD_LIBRARY / ADD_EXECUTABLE

Is LINK_LIBRARIES a wrong value for GET_PROPERTY? How do I get information?

After the

directories LINK_LIBRARIES are not needed property according to this page: target_link_libraries will have an effect on the target on which it was called, not on the directory. Try using instead.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -