Hello all,

I have a problem using the COMPONENT property of the install command. My
CMakeLists.txt has several install commands:

# some files...
install(FILES ${some_var} DESTINATION include/xxx COMPONENT headers)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/somefile.txt"
    DESTINATION share/txt
    COMPONENT extras)
# a shared library created with add_library(mylib SHARED ${somefiles})
install(TARGETS mylib
    RUNTIME DESTINATION bin
    LIBRARY DESTINATION lib
    ARCHIVE DESTINATION lib/static
    COMPONENT libraries)

When I do
make list_install_components
I get:
Available install components are: "Unspecified" "extras" "headers"

My question is: why I don't have a "libraries" component? Does the COMPONENT
property works with shared libraries?

Thank you for your help

David
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to