diff options
author | Yuichiro Utsumi <utsumi.yuichiro@jp.fujitsu.com> | 2021-06-29 06:38:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-29 13:31:53 (GMT) |
commit | 3a0effcd16f657a13390cfd27a13ca334df1ac98 (patch) | |
tree | 3fe3303b3883f4189a92972009729427a6e05d6c /Modules/Compiler/FujitsuClang-FindBinUtils.cmake | |
parent | fb02657b6a4f66cfb1b1673c170136f07945eda2 (diff) | |
download | CMake-3a0effcd16f657a13390cfd27a13ca334df1ac98.zip CMake-3a0effcd16f657a13390cfd27a13ca334df1ac98.tar.gz CMake-3a0effcd16f657a13390cfd27a13ca334df1ac98.tar.bz2 |
FujitsuClang: Set CMAKE_<LANG>_COMPILER_AR and CMAKE_<LANG>_COMPILER_RANLIB
Fixes: #22337
Diffstat (limited to 'Modules/Compiler/FujitsuClang-FindBinUtils.cmake')
-rw-r--r-- | Modules/Compiler/FujitsuClang-FindBinUtils.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Compiler/FujitsuClang-FindBinUtils.cmake b/Modules/Compiler/FujitsuClang-FindBinUtils.cmake new file mode 100644 index 0000000..4a6401d --- /dev/null +++ b/Modules/Compiler/FujitsuClang-FindBinUtils.cmake @@ -0,0 +1,6 @@ +if(NOT DEFINED _CMAKE_PROCESSING_LANGUAGE OR _CMAKE_PROCESSING_LANGUAGE STREQUAL "") + message(FATAL_ERROR "Internal error: _CMAKE_PROCESSING_LANGUAGE is not set") +endif() + +set(CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_AR ar) +set(CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_RANLIB ranlib) |