arm-wince-headless-overrides.cmake 537 B

123456789101112
  1. if(WINCE)
  2. # CommCtrl.lib does not exist in headless WINCE Adding this will make CMake
  3. # Try_Compile succeed and therefore also C/C++ ABI Detetection work
  4. # https://gitlab.kitware.com/cmake/cmake/blob/master/Modules/Platform/Windows-
  5. # MSVC.cmake
  6. set(CMAKE_C_STANDARD_LIBRARIES_INIT "coredll.lib oldnames.lib")
  7. set(CMAKE_CXX_STANDARD_LIBRARIES_INIT ${CMAKE_C_STANDARD_LIBRARIES_INIT})
  8. foreach(ID EXE SHARED MODULE)
  9. string(APPEND CMAKE_${ID}_LINKER_FLAGS_INIT
  10. " /NODEFAULTLIB:libc.lib")
  11. endforeach()
  12. endif()