Fixed WITH_QT=OFF (to not build with Qt even if any dependency included it)

This commit is contained in:
matlabbe
2024-06-15 14:21:51 -07:00
parent c58fffe56d
commit 28fd696c18
3 changed files with 15 additions and 14 deletions

View File

@@ -97,8 +97,7 @@ endforeach()
include("${CMAKE_CURRENT_LIST_DIR}/RTABMapTargets.cmake")
foreach(_comp ${RTABMap_FIND_COMPONENTS})
if (NOT ";${_RTABMap_supported_components};" MATCHES ";${_comp};")
set(RTABMap_${_comp}_FOUND False)
if (NOT RTABMap_${_comp}_FOUND)
if(${RTABMap_FIND_REQUIRED_${_comp}})
set(RTABMap_FOUND False)
set(RTABMap_NOT_FOUND_MESSAGE "Unsupported or not found required component: ${_comp}")