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

Invalid arguments to find_dependency #56

Closed
zuowanghanguang opened this issue Mar 30, 2019 · 8 comments
Closed

Invalid arguments to find_dependency #56

zuowanghanguang opened this issue Mar 30, 2019 · 8 comments
Labels
wontfix This will not be worked on

Comments

@zuowanghanguang
Copy link

Hello,when I run 'make -j1',I meet the error:
CMake Error at /usr/share/cmake-3.5/Modules/CMakeFindDependencyMacro.cmake:45 (message):
Invalid arguments to find_dependency
Call Stack (most recent call first):
/usr/local/lib/cmake/GTSAM/GTSAMConfig.cmake:17 (find_dependency)
LeGO-LOAM/LeGO-LOAM/CMakeLists.txt:23 (find_package)
Does anyone known the reason and how to solve it?Thank you!

@TixiaoShan
Copy link
Collaborator

Have you installed GTSAM that is specified in readme successfully?

@zuowanghanguang
Copy link
Author

Yes.It is 4.0

@mjjdick
Copy link

mjjdick commented Apr 9, 2019

@zuowanghanguang I met the same error and solved by improved my cmake version to 3.10, maybe you can try this solution.

@zuowanghanguang
Copy link
Author

@mjjdick ok.I will try.Thank you!

@TixiaoShan TixiaoShan pinned this issue Apr 10, 2019
@WAT183
Copy link

WAT183 commented Apr 15, 2019

I also met this error and I solved this by change "find_dependency" into "find_package" in file GTSAMConfig.cmake

@TixiaoShan TixiaoShan unpinned this issue Apr 17, 2019
@JunGooLee
Copy link

I also meet same error. Could you let me know more details?
I couldn't find any ..... T.T

@hllcy
Copy link

hllcy commented May 21, 2019

Both 'mjjdick' and 'WAT183' says are valid. The reason can be referenced to 'pabloariasal/modern-cmake-sample#5' , which says "find_dependency() does not support COMPONENTS argument before CMake 3.8.0".

@stale
Copy link

stale bot commented Aug 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 30, 2019
@stale stale bot closed this as completed Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

6 participants