From time to time I run into issues with CMake + MSVC that are caused by long path names. For example, yesterday I ran into the error FileTracker: error FTK1011: could not create the new file tracking log file: <long path>
. This error originated from an ExternalProject that I add to my project.
Often I fix this by changing the BINARY_DIR and set it to something like c:\pp
where pp
is a short name for the ExternalProject. However when someone checks out my code I don’t want to clutter their harddisk with a directory on their c drive.
From my understanding this is an issue caused by MSVC and is unrelated to having long-path-names enabled.
I’m curious what other strategies I might use to work around this issue?