I'm have dependency on Xerces-c++ and for instal
target it always builds example executables and documentation. That consumes ~50% of build time (6 mins on my build VM).
My current build command is cmake --build ${proj}\build_${platform} --config RelWithDebInfo --target install --parallel
.
How can I skip non essential targets?
It's third party dependency, so I don't want to modify CMakeLists.txt
.
According to the source there is no option to control the build of samples
ref: https://github.com/apache/xerces-c/blob/master/CMakeLists.txt#L172
But you can patch it !
note: you can also enable CMP0077 if you have a super build...