Skip to content

[cmake] configure error with cmake 3.19.1 #5

Description

@JackBoosY

When using cmake 3.19.1 to configure solid3, it shows:

CMake Error: install(EXPORT "solid3" ...) includes target "solid3" more than once in the export set.
-- Generating done

solid3/src/CMakeLists.txt

Lines 89 to 102 in c53f6bb

install(
TARGETS solid3
EXPORT solid3
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT development
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT runtime NAMELINK_SKIP
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
)
if(DYNAMIC_SOLID)
install(
TARGETS solid3
EXPORT solid3
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT development NAMELINK_ONLY
)
endif()

It export the target solid3 twice.

Related: microsoft/vcpkg#14716

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions