What does “$<$<CONFIG:Debug>:Release>” mean in cmake?
问题 In buildem_cmake_recipe.cmake, I saw an expression: externalproject_add_step(${_name} BuildOtherConfig COMMAND ${CMAKE_COMMAND} --build ${BINARY_DIR} --config "$<$<CONFIG:Debug>:Release>$<$<CONFIG:Release>:Debug>" --target INSTALL DEPENDEES install ) What does the $<$<CONFIG:Debug>:Release>$<$<CONFIG:Release>:Debug> mean here? 回答1: That's a CMake generator expression. You can follow the link for a full discussion of what these are and what they can do. In short, it's a piece of text which