Skip to content

Commit

Permalink
Make xerces-c, opengl, and gdal private libraries.
Browse files Browse the repository at this point in the history
If these are public libraries a client build system needs to link
to them again even libcitygml was compiled into a self-contained
dynamic library.
  • Loading branch information
gostefan committed Aug 1, 2024
1 parent 36b2a8f commit c7de8a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,16 @@ generate_export_header(citygml
EXPORT_FILE_NAME ${EXPORT_HEADER_FILE_NAME})

if(XercesC_FOUND)
TARGET_LINK_LIBRARIES( ${target} PUBLIC XercesC::XercesC)
TARGET_LINK_LIBRARIES( ${target} PRIVATE XercesC::XercesC)
else(XercesC_FOUND)
TARGET_LINK_LIBRARIES( ${target} PUBLIC ${XERCESC_LIBRARIES} )
TARGET_LINK_LIBRARIES( ${target} PRIVATE ${XERCESC_LIBRARIES} )
endif(XercesC_FOUND)

if(LIBCITYGML_USE_OPENGL)
TARGET_LINK_LIBRARIES( ${target} PUBLIC ${OPENGL_LIBRARIES} )
TARGET_LINK_LIBRARIES( ${target} PRIVATE ${OPENGL_LIBRARIES} )
endif(LIBCITYGML_USE_OPENGL)
if(LIBCITYGML_USE_GDAL)
TARGET_LINK_LIBRARIES( ${target} PUBLIC ${GDAL_LIBRARY} )
TARGET_LINK_LIBRARIES( ${target} PRIVATE ${GDAL_LIBRARY} )
endif(LIBCITYGML_USE_GDAL)

set_target_properties( ${target} PROPERTIES
Expand Down

0 comments on commit c7de8a8

Please sign in to comment.