Skip to content

cmake -Droottest=On tests wrong ROOT build! #7081

@Axel-Naumann

Description

@Axel-Naumann

Describe the bug

Configuring a build with a different ROOT build already in the environment causes CTest to test the wrong build. I wonder how many devs are not testing their changes but that of some completely unrelated build :-(

Expected behavior

cmake -Droottest=On should have ctest test that build.

To Reproduce

$ which root
$ mkdir ../1
$ cd ../1
$ . /home/axel/build/root/master/deb/bin/thisroot.sh
$ cmake -Droottest=On ../src
$ grep ROOTSYS CMakeCache.txt 
ROOTSYS:INTERNAL=/home/axel/build/root/master/deb

Setup

  1. ROOT version: master
  2. Operating system: Ubuntu 20.04
  3. How you obtained ROOT: I built it myself.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions