Skip to content

Add env var for CMake build dir to avoid too long path on Windows#115

Merged
Tobias-Fischer merged 5 commits intoRoboStack:masterfrom
olivier-roussel:too-long-path-win-cmake
Mar 11, 2026
Merged

Add env var for CMake build dir to avoid too long path on Windows#115
Tobias-Fischer merged 5 commits intoRoboStack:masterfrom
olivier-roussel:too-long-path-win-cmake

Conversation

@olivier-roussel
Copy link
Contributor

@olivier-roussel olivier-roussel commented Mar 11, 2026

If the environment variable CUSTOM_CMAKE_BUILD_DIR is set on Windows, then it will be used as root build directory for CMake builds (thus in %CUSTOM_CMAKE_BUILD_DIR%\build). This can be used to avoid as much as possible compilation failure on Windows due to too long paths (such as we had here RoboStack/ros-humble#387 (comment)), if %CUSTOM_CMAKE_BUILD_DIR% set to a short enough path.

@traversaro
Copy link
Member

Can we add a VINCA_ prefix to the env variable name and also observe it on unix for consistency?

@traversaro
Copy link
Member

@olivier-roussel can you chech the CI Failures?

@wolfv not sure if you want to comment

@olivier-roussel
Copy link
Contributor Author

Just some linting, I'm on it

@Tobias-Fischer Tobias-Fischer merged commit 6fe2364 into RoboStack:master Mar 11, 2026
4 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