I have my doubts that ever did work, at least not in the way you expected. You might find the following article I published recently to be helpful:
If you want to confirm the behavior with different CMake versions, use get_target_property(prop my_library LINK_LIBRARIES) after you call target_link_libraries(). Print the value of ${prop} and if you see semicolons inserted in the middle of what you provided, that confirms that your generator expression is being split instead of being treated as a single whole.
Since when did CMake allow any line-breaks or whitespace in general within generator-expressions?
I thought this would never have worked?
Edit: I answered via Email and I wasn’t aware of all the existing answers. Apparently, GMail made multiple, separate Email-threads out of this, not all containing all answers.
Therefore just ignore my question.