Skip to content

Commit

Permalink
Prevent search for disabled optional dependencies in targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRAgostinho committed Feb 25, 2018
1 parent e84fdcd commit 0c84328
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/pcl_pclconfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ foreach(_ss ${PCL_SUBSYSTEMS_MODULES})
if(_opt_deps)
set(PCLCONFIG_OPTIONAL_DEPENDENCIES "${PCLCONFIG_OPTIONAL_DEPENDENCIES}set(pcl_${_ss}_opt_dep ")
foreach(_opt_dep ${_opt_deps})
set(PCLCONFIG_OPTIONAL_DEPENDENCIES "${PCLCONFIG_OPTIONAL_DEPENDENCIES}${_opt_dep} ")
string(TOUPPER "WITH_${_opt_dep}" _tmp)
string(REGEX REPLACE "-(.*)" "" _condition ${_tmp}) #libusb-1.0 case
if(${_condition})
set(PCLCONFIG_OPTIONAL_DEPENDENCIES "${PCLCONFIG_OPTIONAL_DEPENDENCIES}${_opt_dep} ")
endif()
endforeach(_opt_dep)
set(PCLCONFIG_OPTIONAL_DEPENDENCIES "${PCLCONFIG_OPTIONAL_DEPENDENCIES})\n")
endif(_opt_deps)
Expand Down

0 comments on commit 0c84328

Please sign in to comment.