under test, not sure no errors
This commit is contained in:
17
upstream_ref/xllm/cmake/CMakeDetermineMUSACompiler.cmake
Normal file
17
upstream_ref/xllm/cmake/CMakeDetermineMUSACompiler.cmake
Normal file
@@ -0,0 +1,17 @@
|
||||
# Try to find the compiler
|
||||
find_program(CMAKE_MUSA_COMPILER
|
||||
NAMES mcc
|
||||
DOC "MUSA compiler"
|
||||
)
|
||||
set(CMAKE_MUSA_COMPILER_ENV_VAR "MUSA")
|
||||
|
||||
# Check if compiler was found
|
||||
if(CMAKE_MUSA_COMPILER)
|
||||
set(CMAKE_MUSA_COMPILER_LOADED 1)
|
||||
message(STATUS "Found MUSA compiler: ${CMAKE_MUSA_COMPILER}")
|
||||
else()
|
||||
message(FATAL_ERROR "MUSA compiler not found")
|
||||
endif()
|
||||
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/CMakeMUSACompiler.cmake.in
|
||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${CMAKE_VERSION}/CMakeMUSACompiler.cmake IMMEDIATE @ONLY)
|
||||
Reference in New Issue
Block a user