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

CMake Error: install TARGETS given no LIBRARY DESTINATION for shared library target #599

Closed
boehmseb opened this issue Mar 18, 2023 · 4 comments

Comments

@boehmseb
Copy link
Contributor

While cleaning up the phasar integration into the VaRA-Tool-Suite (se-sic/VaRA-Tool-Suite#664) I got the following CMake error basically for all phasar libraries:

CMake Error at cmake/phasar_macros.cmake:239 (install):                                                                                                                                                                                 
  install TARGETS given no LIBRARY DESTINATION for shared library target                                                                                                                                                                
  "phasar_analysis_strategy".                                                                                                                                                                                                           
Call Stack (most recent call first):                                                                                                                                                                                                    
  lib/AnalysisStrategy/CMakeLists.txt:13 (add_phasar_library)

It seems like 9c39fd8 could be the culprit.

@fabianbs96
Copy link
Member

fabianbs96 commented Mar 18, 2023

Hi @boehmseb, that looks quite strange. On my private system I could not reproduce that error -- that is, vara-buildsetup init phasar; vara-buildsetup build phasar complete successfully; actually include(GNUInstallDirs) from out top-level CMakeLists.txt should already set all these required paths correctly. I will investigate further

@boehmseb
Copy link
Contributor Author

Reproducing should be possible with vara-buildsetup build phasar --container=DEBIAN_10.

@MMory
Copy link
Member

MMory commented Apr 20, 2023

should be fixed with recent merge of #602, please confirm @boehmseb

@boehmseb
Copy link
Contributor Author

Yes, can confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants