Require dependencies based on enabled CMake options

12 jobs for cmake-options in 6 minutes and 10 seconds (queued for 1 second)