File tree Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -39,26 +39,10 @@ if(Git_FOUND)
3939 endif ()
4040endif ()
4141
42- if (MSVC )
43- set (BUILD_COMPILER "${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} " )
44- if (CMAKE_VS_PLATFORM_NAME)
45- set (BUILD_TARGET ${CMAKE_VS_PLATFORM_NAME} )
46- else ()
47- set (BUILD_TARGET "${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_PROCESSOR} " )
48- endif ()
49- else ()
50- execute_process (
51- COMMAND ${CMAKE_C_COMPILER} --version
52- OUTPUT_VARIABLE OUT
53- OUTPUT_STRIP_TRAILING_WHITESPACE
54- )
55- string (REGEX REPLACE " *\n .*" "" OUT "${OUT} " )
56- set (BUILD_COMPILER ${OUT} )
42+ set (BUILD_COMPILER "${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} " )
5743
58- execute_process (
59- COMMAND ${CMAKE_C_COMPILER} -dumpmachine
60- OUTPUT_VARIABLE OUT
61- OUTPUT_STRIP_TRAILING_WHITESPACE
62- )
63- set (BUILD_TARGET ${OUT} )
44+ if (CMAKE_VS_PLATFORM_NAME)
45+ set (BUILD_TARGET ${CMAKE_VS_PLATFORM_NAME} )
46+ else ()
47+ set (BUILD_TARGET "${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_PROCESSOR} " )
6448endif ()
You can’t perform that action at this time.
0 commit comments