Windows-Intel.cmake 699 B

123456789101112131415161718
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # This module is shared by multiple languages; use include blocker.
  4. if(__WINDOWS_INTEL)
  5. return()
  6. endif()
  7. set(__WINDOWS_INTEL 1)
  8. include(Platform/Windows-MSVC)
  9. macro(__windows_compiler_intel lang)
  10. __windows_compiler_msvc(${lang})
  11. string(REPLACE "<CMAKE_LINKER> /lib" "xilib" CMAKE_${lang}_CREATE_STATIC_LIBRARY "${CMAKE_${lang}_CREATE_STATIC_LIBRARY}")
  12. foreach(rule CREATE_SHARED_LIBRARY CREATE_SHARED_MODULE LINK_EXECUTABLE)
  13. string(REPLACE "<CMAKE_LINKER>" "xilink" CMAKE_${lang}_${rule} "${CMAKE_${lang}_${rule}}")
  14. endforeach()
  15. endmacro()