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

Unable to link PCL as source #4733

Open
magres opened this issue Apr 27, 2021 · 0 comments
Open

Unable to link PCL as source #4733

magres opened this issue Apr 27, 2021 · 0 comments
Labels
kind: bug Type of issue status: triage Labels incomplete

Comments

@magres
Copy link

magres commented Apr 27, 2021

Describe the bug

Compiled library has been linked with find_package succesfully, but with add_subdirectory as source not.

Context

In CMakeLists.txt

add_subdirectory(libs/pcl)
target_link_library(myprog pcl_common)

cmake --build --target myprog . failed.

Expected behavior

all the neccesary include directories and libraries has been applied, the binary myprog has been compiled succesfully.

Current Behavior

Unable to compile.

Your Environment (please complete the following information):

  • OS: Windows 10
  • Compiler: MSVC 2019
  • PCL Version HEAD

Possible Solution

add INTERFACE properties to the pcl targets.

@magres magres added kind: bug Type of issue status: triage Labels incomplete labels Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Type of issue status: triage Labels incomplete
Projects
None yet
Development

No branches or pull requests

1 participant