Skip to content

Use CMAKE_CURRENT_SOURCE_DIR in FindDependencies.cmake #175

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

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

gareth-cross
Copy link
Contributor

@gareth-cross gareth-cross commented Mar 12, 2025

  • CMAKE_SOURCE_DIR refers to the root of the project, while CMAKE_CURRENT_SOURCE_DIR refers to the directory from which FindDependencies.cmake was included (the glomap dir).
  • Using CMAKE_SOURCE_DIR will break when glomap is built as part of a larger CMake project. CMAKE_CURRENT_SOURCE_DIR behaves correctly in this context.

@lpanaf lpanaf enabled auto-merge (squash) March 13, 2025 12:56
@gareth-cross
Copy link
Contributor Author

@ahojnnes Is the CI stuck on this change? I see a number of pending checks that don't appear to be making progress.

@lpanaf lpanaf disabled auto-merge March 17, 2025 21:45
@lpanaf lpanaf enabled auto-merge (squash) March 17, 2025 21:45
@lpanaf lpanaf disabled auto-merge March 20, 2025 15:01
@lpanaf lpanaf merged commit 8b27858 into colmap:main Mar 20, 2025
7 checks passed
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.

3 participants