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

Fix CMake install configs #3112

Merged
merged 1 commit into from
Oct 2, 2020
Merged

Fix CMake install configs #3112

merged 1 commit into from
Oct 2, 2020

Conversation

Shatur
Copy link
Contributor

@Shatur Shatur commented Oct 1, 2020

Currently the CMake files are being installed in the cmake folder in the root of the install prefix. This is a bit odd. On Linux installation through CMake will create cmake in the /usr (common installation prefix on most distros), which is not desirable.

Usually CMake files are installed to the lib/cmake folder and export files are installed to the lib/library-name. That's what I changed in this PR.

@Shatur
Copy link
Contributor Author

Shatur commented Oct 2, 2020

CMake Search Procedure.

@egorpugin egorpugin merged commit 45413e6 into tesseract-ocr:master Oct 2, 2020
@egorpugin
Copy link
Contributor

Thank you!

@Shatur Shatur deleted the fix-cmake-install-configs branch October 2, 2020 21:36
@yuriisk
Copy link

yuriisk commented Nov 17, 2020

The path should be updated also in cmake/templates/TesseractConfig.cmake.in.

@Shatur
Copy link
Contributor Author

Shatur commented Nov 17, 2020

@yuriisk, sorry, don't get it. Could you explain where in this file the path should be updated?

@yuriisk
Copy link

yuriisk commented Nov 17, 2020

@Shatur95, This command include(${CMAKE_CURRENT_LIST_DIR}/TesseractTargets.cmake) can't find TesseractTargets.cmake because it isn't located in the same directory with TesseractConfig.cmake anymore.

@Shatur
Copy link
Contributor Author

Shatur commented Nov 17, 2020

@yuriisk, thanks, will send a PR.

@Shatur Shatur mentioned this pull request Nov 18, 2020
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

Successfully merging this pull request may close these issues.

4 participants