Skip to content

Commit

Permalink
CMake: Do not include test targets in PCLConfig.cmake.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRAgostinho committed Sep 25, 2018
1 parent 9467b94 commit 8580876
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/pcl_pclconfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ set(PCLCONFIG_SSE_COMPILE_OPTIONS ${SSE_FLAGS})

foreach(_ss ${PCL_SUBSYSTEMS_MODULES})
PCL_GET_SUBSYS_STATUS(_status ${_ss})
if(_status)

# do not include test targets
string(REGEX REPLACE "tests_(.+)" "" _ss ${_ss})

if(_status AND _ss)
set(PCLCONFIG_AVAILABLE_COMPONENTS "${PCLCONFIG_AVAILABLE_COMPONENTS} ${_ss}")
set(PCLCONFIG_AVAILABLE_COMPONENTS_LIST "${PCLCONFIG_AVAILABLE_COMPONENTS_LIST}\n# - ${_ss}")
GET_IN_MAP(_deps PCL_SUBSYS_DEPS ${_ss})
Expand Down Expand Up @@ -68,7 +72,7 @@ foreach(_ss ${PCL_SUBSYSTEMS_MODULES})
endif (_sub_status)
endforeach(_sub)
endif (${PCL_SUBSYS_SUBSYS})
endif(_status)
endif()
endforeach(_ss)

#Boost modules
Expand Down

0 comments on commit 8580876

Please sign in to comment.