Skip to content

Commit f1f095f

Browse files
committed
Assume current version of Flang for CMake < 3.24
1 parent 3fb7284 commit f1f095f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang-rt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (CMAKE_VERSION VERSION_LESS "3.24")
2626
CMAKE_FORCE_Fortran_COMPILER("${CMAKE_Fortran_COMPILER}" "LLVMFlang")
2727

2828
set(CMAKE_Fortran_COMPILER_ID "LLVMFlang")
29-
set(CMAKE_Fortran_COMPILER_VERSION "20.0")
29+
set(CMAKE_Fortran_COMPILER_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}")
3030

3131
set(CMAKE_Fortran_SUBMODULE_SEP "-")
3232
set(CMAKE_Fortran_SUBMODULE_EXT ".mod")

0 commit comments

Comments
 (0)