mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-04 03:00:39 +08:00
Fix cross-compiling windows version detection
(grafted from 2b457f8e5ec2bd38ce5049bd9220d3f37c7fa1ff )
This commit is contained in:
parent
4854326ae8
commit
b4669f9036
@ -26,7 +26,7 @@ function(DetermineShortWindowsName WIN_VERSION win_num_version)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(DetermineOSVersion OS_VERSION)
|
function(DetermineOSVersion OS_VERSION)
|
||||||
if (WIN32)
|
if (WIN32 AND CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
|
||||||
file (TO_NATIVE_PATH "$ENV{COMSPEC}" SHELL)
|
file (TO_NATIVE_PATH "$ENV{COMSPEC}" SHELL)
|
||||||
exec_program( ${SHELL} ARGS "/c" "ver" OUTPUT_VARIABLE ver_output)
|
exec_program( ${SHELL} ARGS "/c" "ver" OUTPUT_VARIABLE ver_output)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user