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

[libgeotiff] Missing find_dependency(PROJ4) in config file #6592

Closed
Neumann-A opened this issue May 24, 2019 · 2 comments · Fixed by #6596
Closed

[libgeotiff] Missing find_dependency(PROJ4) in config file #6592

Neumann-A opened this issue May 24, 2019 · 2 comments · Fixed by #6596
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@Neumann-A
Copy link
Contributor

Neumann-A commented May 24, 2019

If I read the configure logs correctly it tries to link target proj and not library proj supplied by proj config file. For this to work correctly libgeotiff must make a call to find_dependency(PROJ4) before including its target/depens cmake files.

@NancyLi1013 NancyLi1013 added the category:port-bug The issue is with a library, which is something the port should already support label May 24, 2019
@MVoz
Copy link
Contributor

MVoz commented May 24, 2019

maybe worth using symlink in such conflicting cases

cmake -E help
create_symlink old new - create a symbolic link new -> old

example

add_custom_target(symlink
    ${CMAKE_COMMAND} -E create_symlink ${CMAKE_INSTALL_PREFIX}//bin/proj.dll ${CMAKE_INSTALL_PREFIX}/bin//projd.dll
    COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_INSTALL_PREFIX}/Include ${CMAKE_INSTALL_PREFIX}/debug/include)

cmake -E create_symlink

execute_process(COMMAND  ${CMAKE_COMMAND}  -E create_symlink
    "@CMAKE_SOURCE_DIR@/include" # Old name
    "@CMAKE_INSTALL_PREFIX@/include" # New name
)

@MVoz
Copy link
Contributor

MVoz commented May 24, 2019

@Neumann-A Thank you, Sasha ))

other developers are guided by the original
waiting for conflicts and errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants