<div dir="ltr"><div>CMake Warning (dev) at C:/general/build/android/karaway/debug_out/core/DefaultInstall.cmake:203 (get_property):</div><div> Policy CMP0026 is not set: Disallow use of the LOCATION target property.</div>
<div> Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy</div><div> command to set the policy and suppress this warning.</div><div><br></div><div> The LOCATION property should not be read from target "keypad.isp". Use the</div>
<div> target name directly with add_custom_command, or use the generator</div><div> expression $<TARGET_FILE>, as appropriate.</div><div><br></div><div>Call Stack (most recent call first):</div><div> security.null/CMakeLists.txt:23 (my_target_link_libraries)</div>
<div>This warning is for project developers. Use -Wno-dev to suppress it.</div><div><br></div><div><br></div><div>-------------</div><div><br></div><div><div>macro(my_target_link_libraries target )</div><div> if(CMAKE_COMPILER_IS_GNUCC AND __ANDROID__ )<br>
</div><div> foreach( target_lib ${ARGN} )<br></div><div> if( TARGET ${target_lib} )<br></div><div> get_property( lib_path TARGET ${target_lib} PROPERTY LOCATION)<br></div><div> get_property( existing_outname TARGET ${target_lib} PROPERTY OUTPUT_NAME )<br>
</div><div> if( NOT existing_outname )<br></div><div><span class="" style="white-space:pre"> </span>set( existing_outname ${target_lib} )<br></div><div> endif( NOT existing_outname )<br></div><div>
if( ${lib_path} MATCHES "(.*)/([^/]*)$" )<br></div><div> get_target_property(existing_link_flags ${target} LINK_FLAGS)<br></div><div> if(existing_link_flags)<br></div><div>
set(new_link_flags "${existing_link_flags} -L ${CMAKE_MATCH_1} -l ${existing_outname}")<br></div><div> else()<br></div><div> set(new_link_flags "-L ${CMAKE_MATCH_1} -l ${existing_outname}")<br>
</div><div> endif()<br></div><div> set_target_properties( ${target} PROPERTIES LINK_FLAGS ${new_link_flags})<br></div><div><span class="" style="white-space:pre"> </span> add_dependencies( ${target} ${target_lib} )<br>
</div><div> endif( ${lib_path} MATCHES "(.*)/([^/]*)$" )<br></div><div> else()<br></div><div> target_link_libraries( ${target} ${target_lib} )<br></div><div> endif( TARGET ${target_lib} )<br>
</div><div> endforeach( target_lib ${ARGN} )<br></div><div> else()<br></div><div><span class="" style="white-space:pre"> </span>target_link_libraries( ${target} ${ARGN} )<br></div><div> endif()<br></div><div>endmacro()<br>
</div><div><br></div></div><div>----------------------</div><div>In the script I'm getting LOCATION to know if the referenced library is a full pathname or a short name so I can strip the path appropriately... I don't think the target_file solution works here, what other alternative is there?</div>
</div>