Skip to content

Commit

Permalink
Set link to tinyxml2 to PRIVATE and fix config file
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpaul committed Mar 4, 2024
1 parent 229f25a commit 9275a09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sofa/GUI/Qt/CMakeLists.txt
Expand Up @@ -338,7 +338,7 @@ target_link_libraries(${PROJECT_NAME} PUBLIC ${SOFA_GUI_QT_TARGETS})


if(SOFA_DUMP_VISITOR_INFO)
target_link_libraries(${PROJECT_NAME} PUBLIC tinyxml2::tinyxml2)
target_link_libraries(${PROJECT_NAME} PRIVATE tinyxml2::tinyxml2)
endif()

if(Sofa.GL_FOUND)
Expand Down
4 changes: 1 addition & 3 deletions Sofa/GUI/Qt/Sofa.GUI.QtConfig.cmake.in
Expand Up @@ -41,9 +41,7 @@ endif()
if(SOFA_GUI_QT_HAVE_NODEEDITOR)
find_package(NodeEditor QUIET REQUIRED)
endif()
if(SOFA_GUI_QT_HAVE_TINYXML)
find_package(TinyXML2 QUIET REQUIRED)
endif()


if(NOT TARGET @PROJECT_NAME@)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
Expand Down

0 comments on commit 9275a09

Please sign in to comment.