Permalink
Browse files

Handle other compilers better by using compiler ID

  • Loading branch information...
1 parent a90f87b commit 6a78da39b0bbfc96a191737e212a1566a8c20a6e @rpavlik committed Sep 9, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 GetCompilerInfoString.cmake
@@ -106,11 +106,9 @@ function(get_compiler_info_string _var)
set(_verstring "gcc${_gccver}")
else()
- # Some other compiler we don't handle yet.
- message(STATUS
- "WARNING: Not GCC or MSVC, so we invented a messy compiler info string")
+ # Some other compiler we don't handle in more detail yet.
string(REGEX REPLACE " " "_" _verstring "${CMAKE_GENERATOR}")
- set(_verstring "generator:${_verstring}")
+ set(_verstring "${CMAKE_CXX_COMPILER_ID}:generator:${_verstring}")
endif()
# Return _verstring

0 comments on commit 6a78da3

Please sign in to comment.