Skip to content

Commit

Permalink
Add ALIAS to match the exported target. Useful when used as a git sub…
Browse files Browse the repository at this point in the history
…module.
  • Loading branch information
dfaure-kdab committed Dec 14, 2023
1 parent 5e2da07 commit 2bfe5e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/KDSoapClient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ add_library(
kdsoap
${KDSoap_LIBRARY_MODE} ${SOURCES}
)
add_library(KDSoap::kdsoap ALIAS kdsoap)

set_target_properties(kdsoap PROPERTIES OUTPUT_NAME "kdsoap${${PROJECT_NAME}_LIBRARY_QTID}")
if(${PROJECT_NAME}_STATIC)
target_compile_definitions(kdsoap PUBLIC KDSOAP_STATICLIB)
Expand Down

0 comments on commit 2bfe5e6

Please sign in to comment.