Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CPM_DIRECTORY always stores absolute non symlink paths (#379)
* CPM_DIRECTORY always stores absolute non symlink paths When CPM is brought into a project via downloading it will be placed in the build directory. When the build directory is a symlink the CPM_DIRECTORY value will hold the symlink value. This means that trying to run CMake via the real build directory will cause CPM to fail since it considers the current CMAKE_CURRENT_LIST_DIR to be different and will early exit. This resolves the issue be always getting CMake to resolve symlinks before comparing paths for CPM_DIRECTORY. * Refactor logic based on PR review
- Loading branch information