Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4,167
    • Issues 4,167
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #16736
Closed
Open
Issue created Mar 22, 2017 by Milian Wolff@milianw

symlinked source directory trips up cmake server (CMAKE_HOME_DIRECTORY is set but incompatible with configured source directory value)

To reproduce:

cd /tmp
mkdir sources
touch sources/CMakeLists.txt
ln -s sources symlinked-sources
mkdir build
cd build
cmake /tmp/sources
cmake -E server --experimental --debug

[== "CMake Server" ==[
{"supportedProtocolVersions":[{"isExperimental":true,"major":1,"minor":0}],"type":"hello"}
]== "CMake Server" ==]

[== "CMake Server" ==[
{"buildDirectory":"/tmp/build","cookie":null,"generator":"Unix Makefiles","major":1,"protocolVersion":{"major":1},"sourceDirectory":"/tmp/symlinked-sources","type":"handshake"}
]== "CMake Server" ==]

[== "CMake Server" ==[
{"cookie":"","errorMessage":"Failed to activate protocol version: \"CMAKE_HOME_DIRECTORY\" is set but incompatible with configured source directory value.","inReplyTo":"handshake","type":"error"}
]== "CMake Server" ==]

I suggest to only compare canonical paths

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking