Re: [CMake] Does CMake support the --question option for GNU Makefiles?

2018-11-27 Thread Alex Tzonkov
Thanks for the quick response it makes more sense now. Looking at our CMake files, I see now that all our targets are indeed PHONY, because we use *add_custom_target *to create those targets. So no matter what they are always considered out of date. For now I'll have to assume that whoever wrote th

Re: [CMake] Does CMake support the --question option for GNU Makefiles?

2018-11-27 Thread frodak
I think this is just a misunderstanding and not related to CMake. Make --question mode always returns a 1 if the target is PHONY because these targets are always out of date. The Makefiles generated by CMake use a top level PHONY target (and other PHONY targets as well) zzz@i7-lab:~/temp/bldlibvn

[CMake] Does CMake support the --question option for GNU Makefiles?

2018-11-27 Thread Alex Tzonkov
We are using cmake for our project and recently discovered that the generated Makefiles do not seem to work correctly with the '--question' or '-q' option. The return code is always '1' even if there are no changes which would require rebuilding/recompiling anything. I am not sure if this is an iss