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

"Targets may link only to libraries." #531

Closed
songololo opened this issue Feb 8, 2016 · 2 comments
Closed

"Targets may link only to libraries." #531

songololo opened this issue Feb 8, 2016 · 2 comments

Comments

@songololo
Copy link

When installing to Mac El Capitan 10.11.3:

The default installation finds the system geos framework but when I try to override this by editing CMakeCache.txt to my macports version then I get a list of warnings to this effect:

Target "osm2pgsql" requests linking to directory "/opt/local/include/geos".  Targets may link only to libraries.  CMake is dropping the item.

Then make subsequently fails with errors to this effect:

Undefined symbols for architecture x86_64:
etc.

Any ideas for what is wrong or how to get cmake to accept the macports geos?

@pnorman
Copy link
Collaborator

pnorman commented Mar 3, 2017

You shouldn't edit CMakeCache.txt.

If some installed dependencies are not found by CMake, more options may need to be set. Typically, setting CMAKE_PREFIX_PATH to a list of appropriate paths is sufficient.

@pnorman
Copy link
Collaborator

pnorman commented Mar 3, 2017

After #684 we no longer use geos, so this is a moot point.

@pnorman pnorman closed this as completed Mar 3, 2017
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

2 participants