File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
118
118
add_custom_command (
119
119
OUTPUT "${CMAKE_CURRENT_SOURCE_DIR} /build-info.h"
120
120
COMMENT "Generating build details from Git"
121
- COMMAND ${CMAKE_COMMAND} -DMSVC=${MSVC} -DCMAKE_C_COMPILER_ID=${CMAKE_C_COMPILER_ID} -DCMAKE_VS_PLATFORM_NAME=${CMAKE_VS_PLATFORM_NAME} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -P "${CMAKE_CURRENT_SOURCE_DIR} /scripts/build-info.cmake"
121
+ COMMAND ${CMAKE_COMMAND} -DMSVC=${MSVC} -DCMAKE_C_COMPILER_VERSION= ${CMAKE_C_COMPILER_VERSION} - DCMAKE_C_COMPILER_ID=${CMAKE_C_COMPILER_ID} -DCMAKE_VS_PLATFORM_NAME=${CMAKE_VS_PLATFORM_NAME} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -P "${CMAKE_CURRENT_SOURCE_DIR} /scripts/build-info.cmake"
122
122
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
123
123
DEPENDS "${GIT_DIR} /index"
124
124
VERBATIM
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if(Git_FOUND)
36
36
endif ()
37
37
38
38
if (MSVC )
39
- set (BUILD_COMPILER ${CMAKE_C_COMPILER_ID} )
39
+ set (BUILD_COMPILER " ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} " )
40
40
set (BUILD_TARGET ${CMAKE_VS_PLATFORM_NAME} )
41
41
else ()
42
42
execute_process (
You can’t perform that action at this time.
0 commit comments