Configure from ccmake does not work

Hi,
from [url=https://root-forum.cern.ch/t/how-to-know-build-option-offline/21504/1 post[/url], I discover ccmake.
Doing that, I select option I want to enable/disable and then I press “c” to configure. Doing so, I get

[quote] CMake Error at interpreter/CMakeLists.txt:101 (add_dependencies):
Cannot add target-level dependencies to non-existent target “clingUtils”.

The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands. If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.

CMake Error at interpreter/CMakeLists.txt:102 (add_dependencies):
Cannot add target-level dependencies to non-existent target
"clingInterpreter".

The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands. If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.

CMake Error at interpreter/CMakeLists.txt:103 (add_dependencies):
Cannot add target-level dependencies to non-existent target
"clingMetaProcessor".[/quote].

I do not know whether it is normal but if I simply type

[quote]cmake …
make[/quote]
everything goes fine.
What does this error mean?

Hi pamputt. This is strange, in principle the ‘c’ followed by the ‘g’ does the same as reissuing the cmake command. Can you give more details on what did you exactly do. What version of ROOT? What parameter did you change/addded/removed? Thanks.

This is exactly what I did.

tar -xzvf root_v6.06.06.source.tar.gz cd root-6.06.06/ mkdir build_dir cd build_dir ccmake ..
It is written “EMPTY CACHE”. I press “c” to configure.
Everything goes fine and I see all the compilation options that appear.
The problem comes if I press again “c” without changing anything. Doing so, I get the error I posted in my first message.

Hi. I follow exactly your instructions and I cannot reproduce. What version of CMake are you using? I am using myself 3.6.0-rc4. Pere

I was using cmake 3.4.3. I tried with cmake 3.6.0 and indeed I am not able to reproduce anymore.