Generator expressions in CMAKE_REQUIRED_LIBRARIES breaks check_cxx_source_compiles (ninja)
As the title says. check_cxx_source_compiles
is not able to compile anything if CMAKE_REQUIRED_LIBRARIES
contains a generator expression using ninja. A lot of unescapped $ errors in the CMakeError.log. Using keywords optimized/debug works fine though.