Fix empty generator expression on singly config builds
When configuration is done with single configurations build systems (e.g. Make or Ninja), $ expands to an empty string. This change expands this generator expression on both cases to forward the configuration type to cmake.
Close #376 (closed)