summaryrefslogtreecommitdiffstats
path: root/src/eigen-1-disable-os-check.patch
blob: ce9c620b66494d7a04f9887d89be3e22a3175c2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
This file is part of MXE.
See index.html for further information.

--- a/cmake/EigenDetermineOSVersion.cmake	2012-12-05 16:53:46.305932163 +0100
+++ b/cmake/EigenDetermineOSVersion.cmake	2012-12-05 16:56:15.937936644 +0100
@@ -27,19 +27,7 @@
 
 function(DetermineOSVersion OS_VERSION)
   if (WIN32)
-    file (TO_NATIVE_PATH "$ENV{COMSPEC}" SHELL)
-    exec_program( ${SHELL} ARGS "/c" "ver" OUTPUT_VARIABLE ver_output)
-				
-      string(REGEX MATCHALL "[0-9]+"
-           ver_list "${ver_output}")
-      list(GET ver_list 0 _major)		   
-      list(GET ver_list 1 _minor)
-				
-    set(win_num_version ${_major}.${_minor})
-    DetermineShortWindowsName(win_version "${win_num_version}")
-    if(win_version)
-      set(${OS_VERSION} ${win_version} PARENT_SCOPE)
-    endif()
+    set(${OS_VERSION} "unknownWin" PARENT_SCOPE)
   else()
     set(${OS_VERSION} ${CMAKE_SYSTEM} PARENT_SCOPE)
   endif()