Support Companion build with clang-cl on Windows (fw/libsimu not working yet due to compiler-specific macros in that code).

This commit is contained in:
Max Paperno
2018-07-09 12:02:26 -04:00
parent d507dbb5dd
commit 6110bbce98
4 changed files with 17 additions and 6 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ macro(use_cxx11)
endmacro(use_cxx11)
macro(PrintTargetReport targetName)
if(CMAKE_CXX_COMPILER MATCHES "/cl\\.exe$")
set(cpp_version ${MSVC_VERSION})
if(CMAKE_CXX_COMPILER MATCHES "/(clang-)?cl\\.exe$")
set(cpp_version ${CMAKE_CXX_COMPILER_VERSION})
else()
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE cpp_version)
endif()