Hi,
With CMake 3.1.2, I don't see my specified COMMENT for a POST_BUILD
command on a library target, viz:
add_custom_command(TARGET ${LIB_TARGET}
POST_BUILD
COMMAND ln -sf $<TARGET_LINKER_FILE_NAME:${LIB_TARGET}>
${CMAKE_SHARED_LIBRARY_PREFIX}${alias}${CMAKE_SHARED_LIBRARY_SUFFIX}
COMMENT "Generate / refresh courtesy link
${CMAKE_SHARED_LIBRARY_PREFIX}${alias}${CMAKE_SHARED_LIBRARY_SUFFIX} ->
$<TARGET_LINKER_FILE_NAME:${LIB_TARGET}>"
VERBATIM
WORKING_DIRECTORY ${LIBRARY_OUTPUT_PATH})
The documentation doesn't suggest that this is intended behavior. Is
this a bug, or am I doing something wrong? The desired action does get
carried out during a build as desired, but there is no screen output of
COMMENT to herald the generation of the link.
Thanks,
Chris.
--
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