I would like to have the compiler name and version appear in the directory name of the libraries output path like: SET(LIBRARY_OUTPUT_PATH ${CMAKE_SYSTEM_NAME}-${COMPILER_NAME}-${COMPILER_VERSION}) Is there any way to easily detect the compiler name and version without testing every variable MSVC, MSVC80.... Thanks, Dan