Skip to content

Commit

Permalink
Merge pull request #3090 from SergioRAgostinho/compound
Browse files Browse the repository at this point in the history
Fix compound target's target registration
  • Loading branch information
taketwo committed May 20, 2019
2 parents b5506e2 + 5d3497f commit 185b03b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/pcl_targets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function(PCL_ADD_EXECUTABLE _name)

# Some app targets report are defined with subsys other than apps
# It's simpler check for tools and assume everythin else as an app
if(${ADD_LIBRARY_OPTION_COMPONENT} MATCHES "tools")
if(${ADD_LIBRARY_OPTION_COMPONENT} STREQUAL "tools")
set_target_properties(${_name} PROPERTIES FOLDER "Tools")
else()
set_target_properties(${_name} PROPERTIES FOLDER "Apps")
Expand All @@ -330,7 +330,7 @@ function(PCL_ADD_EXECUTABLE _name)
endif()

string(TOUPPER ${ADD_LIBRARY_OPTION_COMPONENT} _component_upper)
list(APPEND PCL_${_component_upper}_ALL_TARGETS ${_name})
set(PCL_${_component_upper}_ALL_TARGETS ${PCL_${_component_upper}_ALL_TARGETS} ${_name} PARENT_SCOPE)
endfunction()

###############################################################################
Expand Down

0 comments on commit 185b03b

Please sign in to comment.