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
|
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
When using cmake 3.19.1 to configure solid3, it shows:
solid3/src/CMakeLists.txt
Lines 89 to 102 in c53f6bb
It export the target
solid3twice.Related: microsoft/vcpkg#14716