diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-09-01 20:23:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-09-01 20:23:07 (GMT) |
commit | 76d059e3fb77b2e79904435c2d574873c0b426ef (patch) | |
tree | e4c9b3bb92673ed457df3215be60f416603fa30c /Modules | |
parent | 06332c883f282ccc1b8a0f379ddf189c259ba1c2 (diff) | |
download | CMake-76d059e3fb77b2e79904435c2d574873c0b426ef.zip CMake-76d059e3fb77b2e79904435c2d574873c0b426ef.tar.gz CMake-76d059e3fb77b2e79904435c2d574873c0b426ef.tar.bz2 |
Add a module to determine if the intel linker supports manifest creation
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Windows-Intel.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-Intel.cmake b/Modules/Platform/Windows-Intel.cmake new file mode 100644 index 0000000..e893925 --- /dev/null +++ b/Modules/Platform/Windows-Intel.cmake @@ -0,0 +1,17 @@ +INCLUDE("${CMAKE_PLATFORM_ROOT_BIN}/CMakeIntelInformation.cmake" OPTIONAL) + +IF(NOT _INTEL_XILINK_TEST_RUN) + EXECUTE_PROCESS(COMMAND xilink /? + ERROR_VARIABLE _XILINK_ERR + OUTPUT_VARIABLE _XILINK_HELP) + IF(_XILINK_HELP MATCHES MANIFEST) + SET(_INTEL_COMPILER_SUPPORTS_MANIFEST 1) + ENDIF(_XILINK_HELP MATCHES MANIFEST) + IF(NOT EXISTS "${CMAKE_PLATFORM_ROOT_BIN}/CMakeIntelInformation.cmake") + FILE(WRITE ${CMAKE_PLATFORM_ROOT_BIN}/CMakeIntelInformation.cmake + " +SET(_INTEL_XILINK_TEST_RUN 1) +SET(_INTEL_COMPILER_SUPPORTS_MANIFEST ${_INTEL_COMPILER_SUPPORTS_MANIFEST}) +") + ENDIF(NOT EXISTS "${CMAKE_PLATFORM_ROOT_BIN}/CMakeIntelInformation.cmake") +ENDIF(NOT _INTEL_XILINK_TEST_RUN) |