-- Google Mock found - building tests
-- Configuring done
CMake Error:
Error evaluating generator expression:
$<IF:$<CONFIG:Debug>,gmockd,gmock>
Expression did not evaluate to a known generator expression
CMake Error:
Error evaluating generator expression:
$<IF:$<CONFIG:Debug>,gmock_maind,gmock_main>
Expression did not evaluate to a known generator expression
The $IF:... syntax was introduced in CMake 3.8.
Insteda of $IF:expr,A,B we can use $expr:A$<$NOT:expr:B> construction instead.