mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-16 22:27:41 -05:00
* 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