[CMake] Determining Compiler Name and Version

Daniel J. Hilferty daniel at hilferty.org
Mon Sep 4 17:15:13 EDT 2006


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



More information about the CMake mailing list