Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compound target's target registration #3090

Merged
merged 1 commit into from
May 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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