I have a parent directory root with two subdirectories, vairant_a and variant_b. Both of the two variants compile the files x.cxx
root
vairant_a
variant_b
x.cxx