Przeglądaj źródła

MSVC: Fix version test for linking corelibc on Windows CE (#14420)

In commit 8fcf0ab0 (Add support for new Windows CE compiler, 2013-08-04)
we made corelibc conditional on the MSVC version, but the version value
was incorrect.  Update it to use corelibc for VS 2008 and below.
Patrick Gansterer 12 lat temu
rodzic
commit
e63cf5f099
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Modules/Platform/Windows-MSVC.cmake

+ 1 - 1
Modules/Platform/Windows-MSVC.cmake

@@ -144,7 +144,7 @@ if(WINCE)
   set(CMAKE_C_STANDARD_LIBRARIES_INIT "coredll.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib")
   set(CMAKE_EXE_LINKER_FLAGS_INIT "${CMAKE_EXE_LINKER_FLAGS_INIT} /NODEFAULTLIB:libc.lib /NODEFAULTLIB:oldnames.lib")
 
-  if (MSVC_VERSION LESS 1500)
+  if (MSVC_VERSION LESS 1600)
     set(CMAKE_C_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT} corelibc.lib")
   endif ()
 else()